Skip to content
Subhajit Sahu edited this page Dec 8, 2022 · 11 revisions

Check if value is an object.

function is(v)
// v: a value
const object = require('extra-object');

object.is({a: 1, b: 2});
// → true

object.is({});
// → true

object.is(1);
// → false


References

Clone this wiki locally