1.0.0 • Published 7 months ago

@ffras4vnpm/ipsam-unde-error v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@ffras4vnpm/ipsam-unde-error Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @ffras4vnpm/ipsam-unde-error

Usage/Examples

const assert = require('assert');
const callBind = require('@ffras4vnpm/ipsam-unde-error');
const callBound = require('@ffras4vnpm/ipsam-unde-error/callBound');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBind(f);

const slice = callBound('Array.prototype.slice');

delete Function.prototype.call;
delete Function.prototype.bind;

fBound(1, 2, 3);

assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);

Tests

Clone the repo, npm install, and run npm test

redux-toolkitrmdirchannelramdaenvtypelrudeepcopyposecreateratevestexpressionbannerenvironmentbatchnamegetterPushdeepcloneawaitECMAScript 2016koreantrimES2019installmimewatchingwgetfind-upbyteLengtheslint-plugindefinerm -frbrowserslistRFC-6455RegExp#flagsaccessibilityfastcopykeyscensorformsregular expressioncompile lessxhrsameValueZeroconcatMapnodejsreusejoicomputed-typeseventDispatchervaluepromisesfastifyformatlanguagepackageextraclassesrandomcheckpreserve-symlinksprettycallbackutilitiesruntimetrimEnddayjstrimLeftwritableoptionisConcatSpreadableweaksetfull-widthTypeScriptdeepchinesetacites8TypeBoxes2018lockfileunicodeformargvhandlersmatchtypesafereact animationeverybreakgroupByform-validationlimitedprototypeshamwarningESnextString.prototype.matchAllboundes2016parentsECMAScript 2019eslintconfigdefinePropertyspectddAsyncIteratorES2018gradients css3rfc4122toobjecttc39extensionpositivedescriptorsscheme-validationschemeargumentstatelessmiddlewareasciihookscommand-lineenumerablewatcherflagforEachworkspace:*mkdirpjsdiffObservablelimitbusyInt32ArrayObjectreal-timeelectronECMAScript 2015syntaxUint8Arrayspinnerless compilertranspilerecmascriptinternalwaapijson-schemasigtermlinewrappathObject.entriesobjectflatMaprm -rfiteratefetchTypedArrayharmonyMapsidetraverseendermake dirquerytslibdependenciescolorECMAScript 7sanitizationpruneES2021comparereduxmulti-packagefast-deep-copyflattenfrommimetypescommandES3httpsetImmediatebrowserlistinputexecmobilepluginESjsonpathbundlingArrayBufferfunctionalvalidatesanitizetapeoperating-systempushparentmochafast-copyurlFloat32Arraynpmtypedarraya11ygetextendequalitydiffi18nhashparsepolyfillcacheestreefixed-widthtypeerroryuprapidsearchIteratorjwtYAMLcircularopencryptoutputObject.getPrototypeOfjson-schema-validatorassignpersistent6to5deep-copyclicodespatchchromiumbrowsercall-boundairbnbtypeoffpstructuredClonenumberCSSsafetextconstlinkbootstrap cssresolvepostcss-pluginspinnersio-tsES2016linuxzoderror-handlingjasmineframeworkwordbreakstablesetgetoptbundlersomemkdirsansicontainsECMAScript 6expressdependency managerdatewalkingconnect.envfunctionsjavascriptInt16Arrayvalidatortranspileslicefileasyncauthrequestless mixinsassertmkdirfantasy-landassertsyamluuidhardlinkstyped arrayES6signalloggerinspectzeropostcssdrop_.extendargparsexsscharactersbabel-corecollectionrgbwebclass-validatortoolkitlintmapRxserializemoduleflagsfunctionArray.prototype.includescurlcore-jspreprocessoreslintpluginconfigurablegetOwnPropertyDescriptorprivateefficientURLSearchParamsprotobufwalkmodulespnpm9idlenested csslibphonenumbertermStyleSheetfiltersigintECMAScript 2023moveRxJStaptypesjsdommatchesreactautoprefixertoArraystyleRegExp.prototype.flagsSymbol.toStringTaggetintrinsicinferencegenericswritestatusviewloadingmomentmatchAllUint8ClampedArray
1.0.0

7 months ago