6.4.85 • Published 10 months ago

@taktikorg/earum-id-asperiores v6.4.85

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

6.4.84

10 months ago

6.4.83

10 months ago

6.4.82

10 months ago

5.4.82

10 months ago

5.4.81

10 months ago

5.4.80

11 months ago

5.4.79

11 months ago

5.4.78

11 months ago

5.4.77

11 months ago

5.4.76

11 months ago

5.4.75

11 months ago

5.4.74

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.4.71

11 months ago

4.4.71

11 months ago

4.4.70

11 months ago

4.4.69

11 months ago

4.3.69

11 months ago

4.3.68

11 months ago

4.3.67

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.3.64

11 months ago

4.3.63

11 months ago

4.3.62

11 months ago

4.3.61

11 months ago

4.3.60

11 months ago

4.3.59

11 months ago

4.3.58

11 months ago

4.3.57

11 months ago

4.2.57

11 months ago

4.2.56

11 months ago

4.2.55

11 months ago

4.2.54

11 months ago

4.1.54

12 months ago

4.1.53

12 months ago

4.1.52

12 months ago

4.1.51

12 months ago

4.1.50

12 months ago

4.1.49

12 months ago

4.1.48

12 months ago

4.1.47

12 months ago

4.1.46

12 months ago

4.1.45

12 months ago

4.1.44

12 months ago

4.1.43

12 months ago

4.1.42

12 months ago

4.1.41

12 months ago

4.1.40

12 months ago

4.1.39

12 months ago

4.1.38

12 months ago

3.1.38

12 months ago

3.1.37

12 months ago

3.1.36

12 months 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