• Jump To … +
    chain.js classList.js collection.js delegate.js extend.js has.js invoke.js isBlank.js isFunction.js isObject.js isRegExp.js isString.js isUndefined.js mapEvents.js mapSelections.js matches.js pluck.js query.js queryAll.js result.js tap.js template.js tokenize.js util.js washi.js
  • isObject.js

  • ¶

    Returns true only if given a true object. Not an array.

    var _ = require('./collection');
    
    module.exports = function(obj) {
  • ¶

    Determine that the object is not an array, then do a simple typeof check

      return _.isArray(obj) !== true && typeof obj === 'object';
    };