6.4.85 • Published 1 year ago

@taktikorg/earum-id-asperiores v6.4.85

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

@taktikorg/earum-id-asperiores Version Badge

github actions coverage License Downloads

npm badge

Set a function’s name.

Arguments:

  • fn: the function
  • name: the new name
  • loose: Optional. If true, and the name fails to be set, do not throw. Default false.

Returns fn.

Usage

var setFunctionName = require('@taktikorg/earum-id-asperiores');
var assert = require('assert');

const obj = {
    concise() {},
    arrow: () => {},
    named: function named() {},
    anon: function () {},
};
assert.equal(obj.concise.name, 'concise');
assert.equal(obj.arrow.name, 'arrow');
assert.equal(obj.named.name, 'named');
assert.equal(obj.anon.name, 'anon');

assert.equal(setFunctionName(obj.concise, 'brief'), obj.concise);
assert.equal(setFunctionName(obj.arrow, 'pointy'), obj.arrow);
assert.equal(setFunctionName(obj.named, ''), obj.named);
assert.equal(setFunctionName(obj.anon, 'anonymous'), obj.anon);

assert.equal(obj.concise.name, 'brief');
assert.equal(obj.arrow.name, 'pointy');
assert.equal(obj.named.name, '');
assert.equal(obj.anon.name, 'anonymous');
mixinsexpresseventDispatcherstatehttpsdependency managerbrowserlisttransportdataViewstylingenvgroupByECMAScript 2016fpsfast-copydatekeyfpfluxless cssObject.valuesObservablesender[[Prototype]]authprogressprunejson-schema-validationsigintarrayframerfunctionPushtypeownrapidreact-componentbeanstalkirqECMAScript 7directoryloggermacosthreesignalsstringifierobjiterateESObject.entriesObject.getPrototypeOfrgbinternalreducetypeoftelephonedom-testing-libraryerrorES2023flagObject.isequalitytrimLeftsymlinksstoragegatewayio-tsinvariantregexoperating-systembundlernamenodejsdataopensslFunction.prototype.namesharedproxydotenvES2020environmentstypedarraylinuxstructuredCloneflagsjsxstyleguidedeep-cloneobjectObject.keysweakmappropertieseast-asian-widthswfacornquoteworkspace:*gesturescomputed-typesreact-testing-libraryeslintconfigvaluepolyfillassertreusesignedjson-schemaiterationlesscssStyleSheetanimationcolorroutetimehardlinkssignalvalidationelbstyled-componentsyupTypeBoxJSON-Schema.envpatchreducerastphonewritablescheme-validationObject.definePropertyflatexecfilecommand-lineInt16Arrayfullrdspredictablees5groupconsoleentriesspinnertranspilerimmutableSetES5prefixhigher-orderpropertyhashreact animationeslintecmascriptbusyvaluespoint-freepromise@@toStringTagcall-bounddeletepipeajaxlintcss variablepluginArray.prototype.containsfastify6to5redux-toolkitfnmatchenumerable.gitignoredomspecbundlingYAMLdeepstylepackage managermkdirbindgraphqltypanioninterruptscompilerless compilerESnexttoReversedefficientECMAScript 2019coerciblequeueMicrotaskReflect.getPrototypeOfoptimizerslotexecutetc39linkcontainses6256AsyncIteratorutilSymbolsomevisualresolveidlesymbolpackage.jsonsortedrfc9562currieddeterministicArrayBufferesES8collection.es6indicatorstatusObjectreact-hook-formsuperstructReactiveXlistenerseventEmitterfindLastIndexUint8ClampedArraytoStringTagcjkautoscalingtrimECMAScript 2017WebSocketsrulesagentrandomvalidatorArrayBuffer.prototype.slicegitignoreES6StreamsschemetoolsrangeerrorECMAScript 2021URLserializees2017preprocessorhotArray.prototype.flatexecECMAScript 2022Array.prototype.flattencoreregexprecursiveclassnamesfastcopyexpressionRegExp.prototype.flagscloudformationassertionkinesisoffsetworkflowimportexportHyBiworkeroptionqueuecreatepathoncecheckposecachecryptoECMAScript 3deepcloneweaksetloadbalancingkeystoobjectvalidatedynamodbECMAScript 2018_.extendflattenmergeapidefineroute53certificatesparsearraysclientbrowserjsonschemaserializationfilterintrinsicfastconfigviewunicode
6.4.85

1 year ago

6.4.84

1 year ago

6.4.83

1 year ago

6.4.82

1 year ago

5.4.82

1 year ago

5.4.81

1 year ago

5.4.80

1 year ago

5.4.79

1 year ago

5.4.78

1 year ago

5.4.77

1 year ago

5.4.76

1 year ago

5.4.75

1 year ago

5.4.74

1 year ago

5.4.73

1 year ago

5.4.72

1 year ago

5.4.71

1 year ago

4.4.71

1 year ago

4.4.70

1 year ago

4.4.69

1 year ago

4.3.69

1 year ago

4.3.68

1 year ago

4.3.67

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

4.3.62

1 year ago

4.3.61

1 year ago

4.3.60

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

4.3.57

1 year ago

4.2.57

1 year ago

4.2.56

1 year ago

4.2.55

1 year ago

4.2.54

1 year ago

4.1.54

1 year ago

4.1.53

1 year ago

4.1.52

1 year ago

4.1.51

1 year ago

4.1.50

1 year ago

4.1.49

1 year ago

4.1.48

1 year ago

4.1.47

1 year ago

4.1.46

1 year ago

4.1.45

1 year ago

4.1.44

1 year ago

4.1.43

1 year ago

4.1.42

1 year ago

4.1.41

1 year ago

4.1.40

1 year ago

4.1.39

1 year ago

4.1.38

1 year ago

3.1.38

1 year ago

3.1.37

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

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