1.0.0 • Published 14 days ago

@rtyughnnpm/explicabo-distinctio-esse v1.0.0

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

@rtyughnnpm/explicabo-distinctio-esse Version Badge

github actions coverage License Downloads

npm badge

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

Example

const assert = require('assert');

const $Object = require('@rtyughnnpm/explicabo-distinctio-esse');
const ToObject = require('@rtyughnnpm/explicabo-distinctio-esse/ToObject');
const RequireObjectCoercible = require('@rtyughnnpm/explicabo-distinctio-esse/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.

writablelistenershookssetPrototypeOfreducervisual@@toStringTagcallboundvariables in cssnegative zerologgerjapaneseestreetypedarrayrequestdeterministicconcaturlphonelook-upoutputworkeroptionramdaviewmatchesfiletypedatefull-widthhandlersArray.prototype.containslengthwatcherqueuepolyfillextendcontainsunicodejsdomfastifypipetakeArrayschemaperformanceregexphookformCSSgetPrototypeOfHyBiqueueMicrotaskargvECMAScript 3querygroupcharactersstylingprettyfixed-widthassigndeepcopyiteratorprivate dataregularArray.prototype.findLasttacitObservablesecmascripthigher-ordertapdeepcloneless csscallbreakstablemkdirpbcryptaccessorBigInt64ArrayloggingfigletparentpropertiesthroatESnextsharedarraysyupstarterrm -fremoji[[Prototype]]Reflect.getPrototypeOfstreamssharedarraybuffereslintconfigInt16Arraycompile lessexecutableparsematchcryptoshrinkwrapURLSearchParamslinkcolumnsobjcallbackjsonexeframerdotenvrandomwidthdroppreprocessorECMAScript 2023springclassnamepromisevest$.extendfindLastauthenticationpackage managerflagposespinnersforEachindicatorpoint-freearktypemixinslibphonenumberbundlerstylesinternal slotRegExp#flagsuuidcorees-shim APImiddlewareObservableflatstylepnpm9genericsformsbddeditorArray.prototype.flatMaptermmacoslinuxbyteOffsetlanguagei18n256mapdayjsTypeScriptcallbindinputRegExp.prototype.flagsWeakSetcss-in-jsObject.valuesratelimitcommandersliceaccessibilityReactiveXletenvutilitynegativebootstrap lessprotocol-bufferstranspilebyteLengthsearchjstouchimmerjQueryfile systemWeakMapjavascriptes-abstractcensoremitdeep-copymodulemulti-packageidgetOwnPropertyDescriptorjsonschematerminalfind-uprmdirieserializepackage.jsonapielectronomitutilitiesmkdirstyled-componentsshellenvironmentavadependency managernameObject.iscommandqspositiveimportopenststrimEndRxJSRFC-6455ArrayBuffer#slicehttpStyleSheetcmdpyyamlvalue0opentc39typesafeweakmapcjkawesomesauceduplexframeworkcolourtextcollectioncharacterfunctionsjson-schema-validationtrimupspawnincludesfromfetchmimeinferencerateharmonymake dirsymlinkscliwalkrfc4122ECMAScript 2016openerresolvevalidatepureinstallweaksetjsdiffeslintpluginreduxargumentsmakeYAMLlesscssxdgprototypeless mixinslesssameValueZeroes8ECMAScript 2021errorhttpsiterationstringifynodesequencestyleguideserializationdescriptorslotsuperagentlockfileString.prototype.matchAllirqreduceStreamFloat32ArrayfsconsoleBigUint64ArraycoercibletesterurlsdirectorybuffersjsonpathstreamwhichutilArray.prototype.flatbundling6to5mruCSSStyleDeclarationformattingstreams2tddyamlpicomatchreactnpmschemepreserve-symlinksconstArray.prototype.flattenperformantArray.prototype.findLastIndexes2017spinnermetadataprogresssettingsdefinePropertyconfigpatchcircularfindpathreadlinewrapsanitizeloadingparentsObject.getPrototypeOfconcurrencyeveryfindupcomputed-typesinternalgetterECMAScript 7debugawaitminimalIteratornopechildlogbrowserslistconnectastcode pointsreact-testing-librarymimetypesoptimistcall-bindtrimStartdeletebabelstringnested csssymlinkremoveECMAScript 2015folderutilsFunction.prototype.nameexitclientES2019mime-dboperating-systemtrimRightreact-hook-formserializerES2016validationfindLastIndexequalcheckexpressionvalidatorSymbol.toStringTaginvariantmkdirsfpWebSocketstringifierencryptionmergejson-schemarobustsafeartform-validationeslintdependenciesexpresslastchannelwaitrequirechaifast-copymobilepopmotionclonebyteUint16Arraya11y.envtranspilerlaunchshamstructuredCloneredux-toolkit3dglobmochabindarrayhasOwnwatchingeventDispatchertraversedataviewdescriptionfullgradients cssMicrosoftinterruptswebsitetapegdprfastclonecall-boundlimitedenumerableshimES2017util.inspectpropertythreedeepformchromebatchmonorepoclassessanitizationlookeventEmittertypedredactworkspace:*extrawhatwgECMAScript 2019regular expressionwindowsfunctionSetformatwatchFilequerystringbootstrap cssguidES6typeofponyfillintrinsiccurlreact-hooks-0apptypedarraystoArrayESchromiumcorsES7css lessstatelesslruflattengraphqlfseventsreadableprotomoduleswarningbufferprotobufgetintrinsicautoprefixerprocesseventssymbolwgetdataViewerror-handlingwordbreakWebSocketsAsyncIteratorfastcopyuninstallajaxfullwidthpushUnderscoreinspectString.prototype.trimpropfunctionalrangeerrorextensionreact animationscheme-validationnamesES2018assertsignalArray.prototype.filteransijson-schema-validatoronceMappasswordoptimizersignalscomparetestingObject.fromEntriesflatMapspeeduser-streamsdatastructurergbenderdefineTypedArrayassertsjsxconsumeObject.keysES2020koreantypanionES3fast-clonemomentconfigurablereal-timeescapedebuggerfastapolloxssvarnumberPushsetImmediatetypesbannerObject.assignless compilervaluesObjectwebpersistentcolorsortedInt8ArrayhashtoStringTageast-asian-widthquotecss variabletaskpackageECMAScript 2020jasmineentriesURLjestes-shimsregular expressionstoSortedArray.prototype.includesimmutablepostcssgradients css3pruneECMAScript 2018ArrayBufferlimitefficienttyped arrayECMAScript 2017css nestingES5JSONtypescriptsuperstructES2021TypeBoxbrowserlistplugin__proto__joipackagesrm -rfwrappromisesajvwriteObject.definePropertyrapidInt32Arrayrecursiveio-tsgroupBythrottlereadablestreamUint8ClampedArraychinesesigtermexit-code
1.0.0

14 days ago