How to use the is-object function in is-object

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;
}

is-object

Checks whether a value is an object

MIT
Latest version published 4 years ago

Package Health Score

71 / 100
Full package analysis

Popular is-object functions