@dramaorg/aperiam-beatae

5.8.66 • Public • Published

@dramaorg/aperiam-beatae Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isMap = require('@dramaorg/aperiam-beatae');
assert(!isMap(function () {}));
assert(!isMap(null));
assert(!isMap(function* () { yield 42; return Infinity; });
assert(!isMap(Symbol('foo')));
assert(!isMap(1n));
assert(!isMap(Object(1n)));

assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));

assert(isMap(new Map()));

class MyMap extends Map {}
assert(isMap(new MyMap()));

Tests

Simply clone the repo, npm install, and run npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.8.661latest

Version History

VersionDownloads (Last 7 Days)Published
5.8.661
5.7.661
5.7.651
5.7.641
5.7.631
5.7.621
5.6.621
5.6.611
5.6.601
5.6.591
5.6.581
5.6.571
5.6.561
5.6.551
5.6.541
5.6.531
5.6.521
5.6.511
5.6.501
5.6.491
5.6.481
5.6.471
5.5.471
5.5.461
5.5.451
5.5.441
5.5.431
5.4.431
5.4.421
5.3.421
5.3.411
4.3.411
4.3.401
4.3.391
4.3.381
4.3.371
4.3.361
4.3.351
3.3.351
3.3.341
3.3.331
3.3.321
3.3.311
3.3.301
3.3.291
3.3.281
3.3.271
3.2.271
3.2.261
2.2.261
2.2.251
2.2.241
2.2.231
2.2.221
2.2.211
2.1.211
2.1.201
2.1.191
2.1.181
2.1.171
2.1.161
1.1.161
1.1.151
1.1.141
1.1.131
1.1.121
1.1.111
1.1.101
1.1.91
1.1.81
1.1.71
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i @dramaorg/aperiam-beatae

Weekly Downloads

79

Version

5.8.66

License

MIT

Unpacked Size

143 kB

Total Files

389

Last publish

Collaborators

  • vanthuanbt26