arrow-identity

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i arrow-identity

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.04 kB

Total Files

8

Last publish

Collaborators

  • jbarog