@lavadrop/identity
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@lavadrop/identity

npm license Travis Build Status codecov Try @lavadrop/identity on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 62 bytes

source

Returns the first argument it receives and ignores any additional arguments.

Usage

import identity from '@lavadrop/identity'

const object = { a: 1 }
identity(object) === object
// => true

Parameters

Name Type Description
value T Any value.
_args any[]

Type parameters

Name
T

Returns

The first argument it receives.

Return type

T

Package Sidebar

Install

npm i @lavadrop/identity

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

8.02 kB

Total Files

8

Last publish

Collaborators

  • jedmao