@lavadrop/identity
Returns the first argument it receives and ignores any additional arguments.
Last updated 2 years ago by jedmao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lavadrop/identity 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

2 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 74
Today 0
This Week 2
This Month 6
Last Day 0
Last Week 4
Last Month 6
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |