1.0.4 • Published 1 year ago

@hishprorg/sed-esse v1.0.4

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

@hishprorg/sed-esse Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @hishprorg/sed-esse

Usage/Examples

const assert = require('assert');
const callBind = require('@hishprorg/sed-esse');
const callBound = require('@hishprorg/sed-esse/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

@@toStringTagassignnamespinnerfunctionsindicatorcoreframerstreamstatelessutillintpicomatchopenssllinkperformanceprototypecheckelectronenvshellObject.entries[[Prototype]]hookformfixed-widthmetadataemittslibInt16ArrayfetchflattoStringTagsyntaxextendgetPrototypeOfpathperformantequalforkbeanstalkReflect.getPrototypeOflessclassnamescallbindMicrosoftyupapollocompile lesstrimLeftfast-deep-clonereadoperating-systemtermcontainsdescriptionsetImmediatedom-testing-librarymatchescss variableecmascriptES2023Rxnodejsuploadhas$.extenderror-handlingxtermspeedglobal objectwarningignorevalidyamldatestylesheetcensorlanguage_.extendviewsignaldeepcloneexit-codezodreducepredictablegitignoreUnderscorevpchigher-orderdescriptorstyle-0groupbytemkdirsio-tsbinsafevariablescommandtddasciipureObject.assignprunewaapiowneslintconcatenumerableschemaproxyfull-widthelasticachecodesECMAScript 2019regular-expressionfastifysesmovetranspilerenderless mixinsprettyphoneObservablescallboundwriteexpressionmomentInt8ArrayentriesES2018offsetsubprocessstoragegatewaypostcss-pluginES8Array.prototype.filterObject.definePropertyinterruptsrecursivetypedbdddeepcopystarterlistenerseslint-plugingetfnmatchreact animationebsanimationcolorsclass-validatorfindLastestreedotenvgroupByfast-copyinstallercommandertacitstyleguideprogressreact-hooksimmutablejsontoobjectinferenceworkflowassertionnpmsymlinkstelephonesharedeventDispatcherrequirereadablestreamoutputES2022walkpropertiescolourutilses5postcssbindxhrfunctionreduxrapidECMAScript 2020ramdaprotobufparserreact poseFunction.prototype.namees2015loadingcirculartesti18nzxsuperstructsigtermtoolstesterinternalESnextdeep-clonecompareieECMAScript 2021fast-clonepackagesnpmignoreerrorstyling3dpushmakeserverstylescomputed-typescjkstatusclassesECMAScript 2016fluxjQueryes-shimszeroobjtoolkitSymbol.toStringTagsharedarraybufferJSONpoint-freedatastructureflagmobileemrwafuninstallfast-deep-copydomstringJSON-Schemaminimaldependency manageriteratorpluginkinesiscollectionObject.getPrototypeOfcoercibleesprivate dataautoscalingless.jscharacterrulesMapqueueUint16Arraypackage manager0arraysserviceassertsCSSsnspyyamlmacosassertawscloudtrailajaxclientdragfullwidthshebangrandomajvdataviewlinuxtouchreact-componentworkspace:*serializerbrowserslisthelpersreal-timeregexpmkdirpexecautoprefixerconsoleacorneslintconfiglocalstatetrimEndInt32Arrayprefixhttpsredactnodeargvchineseformattinggradients cssspringsetterCSSStyleDeclarationHyBikeysES2019ansiescapehasOwnPropertystyled-componentsidleES66to5textletelmnopelrusignalsvaluesregexcore-jsapiasteriskschromeglobalThisloggingmulti-packageuser-streamsArrayBuffer#slicereplaytrimRightstructuredClonechromiumfunction.lengthreuseruntimeimportexportmkdires2016curried
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago