1.0.1 • Published 2 years ago

arrow-identity v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

arrow-identity

A function that returns the same value that was used as its argument. That is, for f being identity, the equality f(X) = X holds for all X.

(x) => x

Install

npm install --save arrow-identity

Usage

const identity = require('arrow-identity');

const originalName = 'John';

const name = identity(numberArray);

console.log(name);
/*
John
*/

License

MIT