@micromint1npm/in-fugit-nesciunt

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][5]][6] [![dev dependency status][7]][8] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]


Keywords
package, superstruct, stable, log, iterator, toSorted, Object.fromEntries, l10n, codes, watching, query, ECMAScript 2022, Object.values, ES3, typeof, ECMAScript 2017, parser, higher-order, web, eslintplugin, hot, banner, argparse, move, recursive, .env, trim, flag, jsdom, optimizer, Object.assign, variables in css, watch, iteration, airbnb, generics, postcss-plugin, match, ES, waf, internal slot, ECMAScript 7, internal, espree, regular, sham, Array.prototype.findLast, output, package.json, hash, loadbalancing, redux-toolkit, full, search, ender, variables, proxy, importexport, ES6, ES2019, columns, fetch, remove, nope, buffer, Uint8ClampedArray, flux, getopt, fast-copy, starter, scheme-validation, args, task, stylesheet, callback, link, text, busy, is, fsevents, formatting, fs, listeners, find-up, amazon, writable, iam, contains, mixins, linewrap, util, mru, redact, css, spinner, in, hooks, findup, tools, telephone, idle, cloudtrail, functions, extend, mkdir, Streams, immutable, fps, es5, symlink, TypedArray, ArrayBuffer#slice, superagent, syntax, encryption, ES2020, config, gradients css, Underscore, collection.es6, rds, mapreduce, styled-components, read, monorepo, input, character, code points, Symbol.toStringTag, es-shims, Observable, valid, delete, tap, toolkit, property, reduce, ECMAScript 2018, width, Object.defineProperty, real-time, json, intrinsic, framework, computed-types, dayjs, awesomesauce, -0, circular, cloudsearch, matches, Stream, querystring, dependency manager, trimEnd, bind, style, ECMAScript 6, autoscaling, ES2015, beanstalk, keys, buffers, from, art, has-own, throttle, hasOwn, debug, readablestream, getPrototypeOf, runtime, cloudwatch, negative zero, rmdir, location, es7, japanese, includes, characters, gradients css3, slice, optimist, phone, symlinks, spec, native, Array.prototype.flatMap, dataView, whatwg, test, [[Prototype]], ECMAScript 5, once, asserts, slot, argument, ES2021, enumerable, shared, routing, bundling, colors, scheme, ECMAScript 2016, fastclone, throat, collection, getintrinsic, CSSStyleDeclaration, less mixins, patch, middleware, compile less, flat, command, setter, every, extension, rgb, concat, tape, Promise, core, state, console, expression, file, cli, bound, sequence, column, merge, Set, concatMap, mime-db, findLast, ava, String.prototype.trim, tc39, s3, stdlib, ESnext, number, Object.keys, wait, cjk, Uint32Array, term, ES2017, push, ebs, utility, WeakSet, functional, jwt, argv, eventEmitter, request, look-up, Uint16Array, authentication, String.prototype.matchAll, copy, defineProperty, mimetypes, dependencies, i18n, util.inspect, speed, URL, 256, wrap, toStringTag, es-shim API, equal, private, write, efficient, ECMAScript 2020, installer, properties, commander, ascii, io-ts, Float64Array, Object.is, simpledb, color, aws, random, Array, bcrypt, Object.entries, extra, preserve-symlinks, browserslist, ajv, es-abstract, fixed-width, RxJS, get, ES2023, values, check, call-bound, ECMAScript 2021, zero, testing, flatMap, rapid, flatten, zod, electron, predictable, terminal, flags, traverse, sns, parent, persistent, shebang, matchAll, progress, view, streams2, route53, map, @@toStringTag, yup, fullwidth, ie, ECMAScript 2015, express, http, picomatch, js, key, Int8Array, less.js, form-validation, sharedarraybuffer, elasticache, worker, npm, obj, date, queue, korean, css nesting, deepcopy, compare, ansi, typedarrays, endpoint, ECMAScript 2019, chai, accessibility, resolve, nested css, elb, ec2, ECMAScript 3, import, gdpr, lockfile, libphonenumber, proto, es2016, css less, kinesis, swf, arktype, unicode, elm, JSON-Schema, Uint8Array, YAML, glob, side, trimLeft, WebSockets, RegExp#flags, auth, https, parse, crypto, Array.prototype.includes, datastructure, await, logger, negative, regular expression, env, Microsoft, ajax, graphql, redirect, value, wget, class-validator, assert, make dir, ecmascript, api, performance, deep, mkdirs, eventDispatcher, browser, accessor, full-width, $.extend, call, install, bundler, es2018, consume, parsing, groupBy, schema, jsonpath, ts, chinese, eslintconfig, sorted, estree, dynamodb, time, logging, fast, Array.prototype.findLastIndex, colour, multi-package, Array.prototype.filter, walking, jQuery, typeerror, duplex, RFC-6455, private data, HyBi, callbound, validate, lesscss, lazy, protocol-buffers, which, live, Object.getPrototypeOf, less, react-testing-library, guid, rate, exec, minimal, assertion, id, robust, a11y, packages, fast-clone, lru, nodejs, styleguide, javascript, drop, module, react, inspect, sqs, deepclone, core-js, postcss, react-hooks, storagegateway, stringify, hasOwnProperty, setImmediate, weakmap, _.extend, route, coercible, regex, es8, shrinkwrap, iterate, watchFile, names, shell, jasmine, entries, take, ArrayBuffer.prototype.slice, xterm, readable, deterministic, node, byte, define, apollo, trimStart, watcher, mocha, make, async, dir, queueMicrotask, invariant, string, figlet, deep-copy, censor, css-in-js, omit, utilities, diff, ECMAScript 2023, tty, BigUint64Array, configurable, file system, connect, ArrayBuffer, modules, path, TypeScript, tslib, toArray, chrome, less css, clone, fast-deep-copy, RegExp.prototype.flags, prop, metadata, east-asian-width, password, call-bind, prototype, styling, descriptor, cors, require, vpc, react-hook-form, limit, AsyncIterator, ReactiveExtensions, bdd, ES2022, filter, language, parents, regexp, hardlinks, look, symbol, rm, getOwnPropertyDescriptor, some, assign, own, inference, batch, ast, walk, regular expressions, open, preprocessor, classes, qs, Array.prototype.flatten, Function.prototype.name, arrays, typed, glacier
License
MIT
Install
npm install @micromint1npm/in-fugit-nesciunt@1.0.0

Documentation

@micromint1npm/in-fugit-nesciunt Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Example

var whichCollection = require('@micromint1npm/in-fugit-nesciunt');
var assert = require('assert');

assert.equal(false, whichCollection(undefined));
assert.equal(false, whichCollection(null));
assert.equal(false, whichCollection(false));
assert.equal(false, whichCollection(true));
assert.equal(false, whichCollection([]));
assert.equal(false, whichCollection({}));
assert.equal(false, whichCollection(/a/g));
assert.equal(false, whichCollection(new RegExp('a', 'g')));
assert.equal(false, whichCollection(new Date()));
assert.equal(false, whichCollection(42));
assert.equal(false, whichCollection(NaN));
assert.equal(false, whichCollection(Infinity));
assert.equal(false, whichCollection(new Number(42)));
assert.equal(false, whichCollection(42n));
assert.equal(false, whichCollection(Object(42n)));
assert.equal(false, whichCollection('foo'));
assert.equal(false, whichCollection(Object('foo')));
assert.equal(false, whichCollection(function () {}));
assert.equal(false, whichCollection(function* () {}));
assert.equal(false, whichCollection(x => x * x));
assert.equal(false, whichCollection([]));

assert.equal('Map', whichCollection(new Map()));
assert.equal('Set', whichCollection(new Set()));
assert.equal('WeakMap', whichCollection(new WeakMap()));
assert.equal('WeakSet', whichCollection(new WeakSet()));

Tests

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