Installations
npm install @teamteanpm2024/temporibus-facere-optio
Developer Guide
BETA
Typescript
No
Module System
CommonJS
Node Version
20.12.2
NPM Version
10.5.0
Score
50
Supply Chain
32.1
Quality
79.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
414
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
-89.5%
2
Compared to previous month
Last year
0%
414
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
37
@libphamton/chatfanpage@libphamton/fb-group@oraliepham/api-chat-fanpage-facebook@oraliepham/api-facebooknew@teamteanpm2024/aperiam-dolor-aliquid@teamteanpm2024/aperiam-fugit-error@teamteanpm2024/aperiam-similique-soluta@teamteanpm2024/architecto-alias-quod@teamteanpm2024/asperiores-atque-fugit@teamteanpm2024/aut-voluptatum-vero@teamteanpm2024/beatae-aliquid-id@teamteanpm2024/commodi-illum-occaecati@teamteanpm2024/consequuntur-enim-dignissimos@teamteanpm2024/consequuntur-voluptates-quod@teamteanpm2024/debitis-iure-atque@teamteanpm2024/dolores-beatae-possimus@teamteanpm2024/earum-illum-veniam@teamteanpm2024/earum-ipsam-aspernatur@teamteanpm2024/effective-octo-computing-machine@teamteanpm2024/exercitationem-rem-magni@teamteanpm2024/expedita-labore-ipsum@teamteanpm2024/iste-sapiente-possimus@teamteanpm2024/laudantium-autem-pariatur@teamteanpm2024/legendary-meme@teamteanpm2024/non-tempora-perferendis@teamteanpm2024/nostrum-deleniti-fugit@teamteanpm2024/odio-fugiat-in@teamteanpm2024/odit-voluptatibus-nobis@teamteanpm2024/perspiciatis-a-unde@teamteanpm2024/saepe-in-beatae@teamteanpm2024/sit-optio-enim@teamteanpm2024/temporibus-distinctio-in@teamteanpm2024/voluptate-facere-ducimus@teamteanpm2024/voluptatibus-reprehenderit-oditapi-chat-fanpage-facebookapi-chatfbapi-chatfb-test
Versions
@teamteanpm2024/temporibus-facere-optio
Set a function’s name.
Arguments:
fn
: the functionname
: the new nameloose
: Optional. If true, and the name fails to be set, do not throw. Default false.
Returns fn
.
Usage
1var setFunctionName = require('@teamteanpm2024/temporibus-facere-optio'); 2var assert = require('assert'); 3 4const obj = { 5 concise() {}, 6 arrow: () => {}, 7 named: function named() {}, 8 anon: function () {}, 9}; 10assert.equal(obj.concise.name, 'concise'); 11assert.equal(obj.arrow.name, 'arrow'); 12assert.equal(obj.named.name, 'named'); 13assert.equal(obj.anon.name, 'anon'); 14 15assert.equal(setFunctionName(obj.concise, 'brief'), obj.concise); 16assert.equal(setFunctionName(obj.arrow, 'pointy'), obj.arrow); 17assert.equal(setFunctionName(obj.named, ''), obj.named); 18assert.equal(setFunctionName(obj.anon, 'anonymous'), obj.anon); 19 20assert.equal(obj.concise.name, 'brief'); 21assert.equal(obj.arrow.name, 'pointy'); 22assert.equal(obj.named.name, ''); 23assert.equal(obj.anon.name, 'anonymous');
No vulnerabilities found.
No security vulnerabilities found.