3.0.0 • Published 5 years ago

@lavadrop/identity v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

@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

NameTypeDescription
valueTAny value.
_argsany[]

Type parameters

Name
T

Returns

The first argument it receives.

Return type

T