1.0.0 • Published 6 years ago
@kingjs/func.return-arg-1 v1.0.0
@kingjs/func.return-arg-1
A function that returns the second argument.
Usage
Return the second argument like this:
var returnArg1 = require('@kingjs/func.return-arg-1');
returnArg1('Hello', 'World!');
result:
'World!'
API
declare function returnArg1(
arg0: any,
arg1: any
): any
Parameters
arg0
: Any value.arg1
: Any value.
Returns
Returns arg1
.
Install
With npm installed, run
$ npm install @kingjs/func.return-arg-1
License
MIT
1.0.0
6 years ago