Package Exports
- @queso/identity
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@queso/identity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@queso/identity
Part of a library of zero-dependency npm modules that do just one thing.
- 100% TypeScript support.
- It's not a party without
Queso!
min + gzip | 62 bytes
Returns the first argument it receives and ignores any additional arguments.
Usage
import identity from '@queso/identity'
const object = { a: 1 }
identity(object) === object
// => trueParameters
| Name | Type | Description |
|---|---|---|
value |
T |
Any value. |
_args |
any[] |
Type parameters
| Name |
|---|
T |
Returns
The first argument it receives.
Return type
T