Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.164.253
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
mimic-fn /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
304
B
-rw-r--r--
2018-02-02 03:26
license
1.08
KB
-rw-r--r--
2017-06-01 19:17
package.json
1.54
KB
-rw-r--r--
2021-02-04 21:24
readme.md
1.03
KB
-rw-r--r--
2018-02-02 03:27
Save
Rename
# mimic-fn [](https://travis-ci.org/sindresorhus/mimic-fn) > Make a function mimic another one Useful when you wrap a function in another function and like to preserve the original name and other properties. ## Install ``` $ npm install mimic-fn ``` ## Usage ```js const mimicFn = require('mimic-fn'); function foo() {} foo.unicorn = '🦄'; function wrapper() { return foo() {}; } console.log(wrapper.name); //=> 'wrapper' mimicFn(wrapper, foo); console.log(wrapper.name); //=> 'foo' console.log(wrapper.unicorn); //=> '🦄' ``` ## API It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set. ### mimicFn(to, from) It will modify `to` and return it. #### to Type: `Function` Mimicking function. #### from Type: `Function` Function to mimic. ## Related - [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function ## License MIT © [Sindre Sorhus](https://sindresorhus.com)