Skip to content
Subhajit Sahu edited this page Dec 5, 2022 · 14 revisions

Check if value is a map.


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

map.is(new Map([['a', 1], ['b', 2]]));
// → true

map.is(new Map());
// → true

map.is(1);
// → false


References

Clone this wiki locally