1.0.0 • Published 1 year ago

@hutechtechnical/ut-aliquid-alias-quibusdam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hutechtechnical/ut-aliquid-alias-quibusdam Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2017 spec-compliant Object.entries shim. Invoke its "shim" method to shim Object.entries if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Most common usage:

var assert = require('assert');
var entries = require('@hutechtechnical/ut-aliquid-alias-quibusdam');

var obj = { a: 1, b: 2, c: 3 };
var expected = [['a', 1], ['b', 2], ['c', 3]];

if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
	// for environments with Symbol support
	var sym = Symbol();
	obj[sym] = 4;
	obj.d = sym;
	expected.push(['d', sym]);
}

assert.deepEqual(entries(obj), expected);

if (!Object.entries) {
	entries.shim();
}

assert.deepEqual(Object.entries(obj), expected);

Tests

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

argumentsspawnArray.prototype.containsaststylesstylingroute53package managerwritemap256immerperformancedirObject.entriescommandworkflowcensorcachetape3dawaittsparsingassignlrutddimportexportObject.keysarrayerrorUnderscorestyleguidekarmavaluesrm -rfform-validationlibphonenumbers3ArrayBuffer.prototype.sliceiteratearktypeguidpathfunctionaleslint-plugincolorsmobiledategesturesoutputgroupbddprotocol-buffersECMAScript 7bundlingxdg-openArray.prototype.findLastcjkgdpriehashtrimLeftsuperagentdeep-copyregular expressionJSON-Schemajoimakeprocesses5toolses6optionintrinsicJSONECMAScript 5eslintconfigflagsqsecmascriptoptimisteventEmitterInt32ArraywalkcurlloadbalancingmoverangeerrorhttpelectronlooklockfilepropertiesWeakSetjsprototypees2015positivetostringtagprivateArray.prototype.flatuninstallES2018globECMAScript 2020consumesuperstructxdgcoreRxJSformattypesaferatelimitsymlinktslibjestvalidES2023shamjshintcallbacktypeerrorsymbolstringifyboundes7varsasciipatchloggeres-abstractwhatwgpopmotioninstallerfspreserve-symlinksvaluesetPrototypeOfcharacterslaunchstyleregexpdefinePropertytesturlsfilterescapecoerciblequerystreamsbyteLength0styled-componentsresolvebundlerfast-deep-copyimportthreeMicrosoftshebangrandomduplexes2016matchesweaksettesterPushTypeScriptwafObject.valuesECMAScript 2022elbWebSocketworkspace:*i18nstableefficientisConcatSpreadableinvariantexecutablechildglobalframeworktypesflattenRegExp#flagspackageslimitUint8Arraycallbindfpsinputreal-timeiteratorInt8ArraymomentfindutilitystatelessreduxSymbol.toStringTagreactes2017cloudwatchdescriptordomString.prototype.matchAlljsxconsoleconvertfigletsyntaxerrorthroatserializerreact-testing-librarypolyfillBigInt64ArraychannelkeyObservableMaputilhelperspringpropphoneglobalsdynamodbCSSStyleDeclarationgenericshelperssidestructuredClonesequencespinnersnativesharedarraybufferreuseentriestyped arrayobjectmulti-packageutilitiesrfc4122commanderautoprefixerwhichequalapollolook-upswfdescriptionIteratorarraysRxbuffermapreduceflates-shim APIstringviewgetterargvespreecomputed-typesdeepnodejsWebSocketscssframerfastcopyextendmatchsomenamedeepcopybluebirdperformantajaxArrayBuffertypescriptparseextensionvpcregular expressionswaitcreatel10nquerystringdependenciesworkersettingsdatastructureargsArrayBuffer#slicetrimRightprunevisualcharacterlanguagehooksfastcloneunicodeECMAScript 2017safewordwrapcommand-linetoSortedrecursive
1.0.0

1 year ago