2.2.0 • Published 13 days ago

@libtommy2024/magni-vel-recusandae-minus v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

@libtommy2024/magni-vel-recusandae-minus Version Badge

github actions coverage License Downloads

npm badge

ES Object-related atoms: Object, ToObject, RequireObjectCoercible.

Example

const assert = require('assert');

const $Object = require('@libtommy2024/magni-vel-recusandae-minus');
const ToObject = require('@libtommy2024/magni-vel-recusandae-minus/ToObject');
const RequireObjectCoercible = require('@libtommy2024/magni-vel-recusandae-minus/RequireObjectCoercible');

assert.equal($Object, Object);
assert.throws(() => ToObject(null), TypeError);
assert.throws(() => ToObject(undefined), TypeError);
assert.throws(() => RequireObjectCoercible(null), TypeError);
assert.throws(() => RequireObjectCoercible(undefined), TypeError);

assert.deepEqual(RequireObjectCoercible(true), true);
assert.deepEqual(ToObject(true), Object(true));

const obj = {};
assert.equal(RequireObjectCoercible(obj), obj);
assert.equal(ToObject(obj), obj);

Tests

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

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

structuredClonergbRxsameValueZeroexecvarFloat64ArrayarraybufferimportdebugclicallbindUint16ArrayECMAScript 2019symbolnativerobustES2020toArrayArray.prototype.filteryamlObject.iscjktestercss variablevalidcharactersmatchassignjsmakexssflatmkdirpWebSockettoStringTagUint8Array__proto__chaiframeworktypescriptsettingsajaxcore-jsomitObjectfseventsassertstrimEndauthenticationeslintparentpathdroppipespinnersmulti-packageintrinsicanimation0performantUint32Arrayfunctionsdeep-clonelazyavashrinkwrapfilterWeakMapprototypedirectoryArrayBufferpatchtranspilerrecursiveinvariantefficientecmascriptutilssyntaxerrorwgetgradients css3throattraversegetspinner-0bootstrap lesseslintplugineast-asian-widthECMAScript 2015shamtypedarraysunicodemomentletmonorepoES3xdgmetadatadeeprfc4122editorserializelinkchrometypedarraySymbolprotocol-buffersregexpyyamlconnectMapcolorses2016concatsuperagenttoSortedwrapfpcallboundcommandes6koreaneverymake direnvgesturestrimcacheidlegetOwnPropertyDescriptordefaultdefineSetmergevalidateserializationless.jspnpm9dataViewflagsjson-schema-validationcurlUint8ClampedArraymimecoremochatypanionTypeScriptnpmjsdombufferinterruptsform-validationinstallerdeepcloneaccessibilitygenericstestingthreesymbolsdebuggervisualgradients csswatcherexit-codeconsoleincludescolumnremoveArraybrowserlistreadcommand-linelruArray.prototype.containsInt32Arraysortcreatepackagetc39walkclientesless mixinsmapieastinferencecode pointsttyweakmapthrottlehttpsutilitytypedreact-testing-libraryinspectchromiumratelimitnopenamesqueuesanitizationopenES5extensionclassnamespicomatchhandlersInt8Arraydragl10ncompile lessurljsonschematranspilewritejestfastkeyenvironmentECMAScript 2020isConcatSpreadablekeyshttprm -frArray.prototype.findLastIndexES8uninstallsetterloggingairbnbBigUint64ArrayPushsigtermjavascripttapeglobextendlessfast-copygetintrinsicmixinscircularWebSocketslimitponyfilltestlastoncepromisees2017ES2022less cssfindfixed-widthasciiJSON-Schemaemitconstcolourtddtyped arraysafejsonsearchjasmineratenegativetslibvalueeventEmittercall-bindfind-upcodesdeletewatchFileqschinesees2018shebangtrimRightarraystimedescriptionES7requireES2021dirtakeStreamsspringcryptcollectionless compilerfetchxhrbyteLengthprefixcharacterparserlook-upreducervariables in csspreprocessoropenerArrayBuffer.prototype.slicepositiveprotobufflatMapdeterministiccall-boundreact animationtostringtagirqbrowserrm -rfFloat32Arrayassertionkarmaes5callbackextramimetypesxdg-openpopmotioncontainsFunction.prototype.nameformargvObject.definePropertyRegExp.prototype.flagseslintconfigslotcompareconfigcssStyleSheetstreams2stablehookformwordwrapoperating-systemReactiveExtensionsURLgroupByoptionECMAScript 2017eslint-pluginlaunchhelpersposecorsRegExp#flagsquotenegative zeroECMAScript 2018redactdatastructureformsmatchesreact poseinternal slotes-shim APIencryptionrandomfastcopyawaitdeepcopyconcatMapminimalInt16Arrayworkeres7functionalpolyfill_.extendansibundlingfigletbyteOffsetenderWeakSetwaitutil.inspectshellstyleuplibphonenumberESnextquerystringhasOwnimmutableMicrosoftjsdiffcoercibleformatredux-toolkitchannelES2018colorajvfast-deep-cloneECMAScript 6Promiseurlsequalitylesscsstypesio-tsstarterECMAScript 2023streams256mobiledatebabel-corearktypefindLastIndexstringifiersidereducewarningconfigurableerrorURLSearchParamscss nestingbrowserslistviewresolvelanguagechildpruneisfullwidthECMAScript 2021bootstrap cssdatababelzodvalidatorYAMLtacittypesafewaapitoobjectObservablessortedmime-dbfantasy-landa11yreal-timeimmertaskfunctionreactes-abstractwatchpostcssinstallharmonyvaluessymlinksloggerlengtheventDispatcherobjgdprparentshooks@@toStringTagES2016styleguideemojiCSSstringpropfindLastcmdfastcloneoutputhashprivate datasignalsreadablerangeerrornodecallpushdependency managerframercomputed-typesstreamsethardlinksclonedescriptorstermerror-handlingsetImmediateECMAScript 5censorterminalcolumnsgroupArray.prototype.findLastregexpregularschemamatchAlltouchwindowsfull-widthReflect.getPrototypeOffast-cloneUnderscore.envIteratorutilprocessdiffbluebirduser-streamsguidrequestJSONes-shimsECMAScript 2016Object.valuesrmdirclassnamemkdirforEachObject.fromEntriesawesomesauceschemeuuid[[Prototype]]telephonepropertyfshastypeofnested cssreadablestreamsigintassertES2023listenersspawn
1.2.0

13 days ago

2.2.0

13 days ago

1.0.0

1 month ago