Front end of the Slack clone application.

index.js 204B

1234567891011
  1. 'use strict';
  2. module.exports = function isArrayish(obj) {
  3. if (!obj) {
  4. return false;
  5. }
  6. return obj instanceof Array || Array.isArray(obj) ||
  7. (obj.length >= 0 && obj.splice instanceof Function);
  8. };