How to use is-object - 2 common examples

To help you get started, we’ve selected a few is-object examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github barbuza / kebakaran / src / snapshotValue.js View on Github external
export function snapshotValue(snapshotOrValue) {
  if (isObject(snapshotOrValue) && isFunction(snapshotOrValue.val)) {
    return snapshotOrValue.val();
  }
  return snapshotOrValue;
}
github fp-dom / fp-dom / scripts / build.js View on Github external
let getModuleExports = map(mod => {
  let modObj = require(mod);
  return isObject(modObj) ? [mod, filterFunctionNames(modObj)] : [mod, 'default'];
});

is-object

Checks whether a value is an object

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis

Popular is-object functions