Licence
MIT
Version
1.0.0
Deps
20
Size
15 kB
Vulns
0
Weekly
0
@osjwnpm/amet-quasi-culpa 
An ES2017 spec-compliant Object.values shim. Invoke its "shim" method to shim Object.values 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 values = require('@osjwnpm/amet-quasi-culpa');
var obj = { a: 1, b: 2, c: 3 };
var expected = [1, 2, 3];
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
// for environments with Symbol support
var sym = Symbol();
obj[sym] = 4;
obj.d = sym;
expected.push(sym);
}
assert.deepEqual(values(obj), expected);
if (!Object.values) {
values.shim();
}
assert.deepEqual(Object.values(obj), expected);
Tests
Simply clone the repo, npm install, and run npm test
Keywords
findLastIndexes7interruptsmacosguidyamlpropertiesawesomesauceredacttoSortedsymlinkeast-asian-widthajaxqueryemitkarmaauthbootstrap lessbyteOffsetsameValueZerocolumnsideschema0parserfantasy-landECMAScript 5styled-componentswaitcmdString.prototype.matchAllinvarianteslintpluginvalidationmatchesglobcompile lesstouchlazychanneltostringtagfile systemES2015toobjectlimitexit-codeparentspostcss-pluginhookssignalassigntypanionastjQuerystartermovetacitcreatedescriptorcolorratecheckregexpsuperstructfpconcattermeslint-pluginInt8Arraycsstelephonematchlogginggesturesexpressprotocol-bufferscolourstylingtypeofReflect.getPrototypeOfcallcollectionURLdeletewgetindicatorlogspringescapeinstaller__proto__passworduuidgetOwnPropertyDescriptorweaksetmulti-packagestylesi18nrecursiveirqwindowsSymbol.toStringTagES6objectbootstrap cssestreecopyweakmapmetadatacallbindcryptlintvalueslanguagejsonpathminimaldeepemojirfc4122wordbreakECMAScript 2018es-shimsidautoprefixerString.prototype.trimtddinspecteveryworkerwaapisharedarraybufferCSSarraybufferoncestylenopetssignalsa11yArrayBuffer#sliceobjYAMLrandomURLSearchParamsparentdeterministicinputMapgetoptwalkratelimitshebangdependency manageres6commanddataviewObject.getPrototypeOftypesafeconcatMaploggerfast-copypoint-freejsxhasOwndropObject.isObject.assignsuperagentStyleSheetbusysetPrototypeOframdaES2019immutableECMAScript 2016characterArrayBufferpipeFunction.prototype.nameidlenegativegradients css3setmkdirpECMAScript 3getintrinsicgetPrototypeOfqueueMicrotaskES2016timeentriesgraphqllookchromeviewstyleguidereact-hooksairbnbframeworkESprotobufdatescheme-validationObject.valuesInt16Arraypackage.jsonanimationTypedArrayformatnativesyntaxreact animationdefinePropertyequalxhrslicecss variablewatchinges2016zodES2020bcryptdeepcopylistenersrequestspectyped arrayiexdg-openfseventsObject.fromEntriescjkes-abstractgradients cssfastifyUnderscoredeep-clonebddtypeformTypeScriptreadablefastIteratorvalidateflatMapperformantrmRegExp.prototype.flagsbabel-corefsstreamtakedirtypedinternalmimeruntimecommand-linetypedarrayshardlinksbrowserlistcurlcode pointsshimclassestoArrayeditorsortedframerspawnserializationgroupzeroreact-testing-libraryclonefind-upwebpopmotioncss-in-jswritefolderreal-timeutilitiesbrowserslistpicomatchthrottleserializermixinsbundlingcomputed-typesArray.prototype.flattenserializeless mixinsquotextermtty256propertyES2018finddom-testing-librarysharedprocessreact posetslibfixed-widthoptimizerrgbfromlinuxoutputstatelessArraybabelforEachFloat32ArrayAsyncIteratordataViewjapaneseqsargparsees8form-validationassertionpathaccessorECMAScript 7bufferBigUint64Arraynamepuretesterpackage managerrapidtraverseeventEmittercollection.es6assertjavascriptplugindeepclonesearchcolorsless compilerprotocore-jskoreantoStringTagextensionbrowserrm -rfsymlinksfilterprefixTypeBoxappArray.prototype.findLastIndexfindupextendecmascriptenderkeyshelpersReactiveXArray.prototype.flatMapoffsetconsumepropdebugpreserve-symlinksfindLastextraFloat64Arraynpmtc39promisesnegative zeroauthenticationStreamincludescallboundflagconcurrencypreprocessorbyteLengthES7.envwhatwgfunctionalvalueutil.inspectcall-bindl10ndeep-copyECMAScript 2019electronmkdirsduplexArrayBuffer.prototype.slicetestcryptoObject.keysreadablestreamcharactersvariables in cssArray.prototype.findLastmoduleRFC-6455structuredCloneStreamserrorPromiseECMAScript 2022removecss lesspersistentinternal slotESnextfast-deep-cloneSetenvironmentlinkcallbackECMAScript 2021sortencryptionbuffersmkdirqueueprogressfull-widthrangeerrortranspiler-0prettytrimStartstatusposexdgjsmime-dbcontainsbundleromitMicrosoftHyBiCSSStyleDeclarationerror-handlinglockfilewatchcss nestingexitmochaes-shim APIclassnameUint16Arrayparsedefaultsymbolsflagsregular expressionArray.prototype.containsdependenciesvariablesbatchutilpruneapollocurriedflattenenvdayjs
