Lodash -prototype.value 方法

语法

_.prototype.value()

执行链式序列以解析解包值。

输出

  • (*) − 返回解析后的解包值。

示例

var _ = require('lodash');  
var array = [1, 2, 3];
 
console.log(_(array).value());

将上述程序保存在tester.js中。运行以下命令执行该程序。

命令

\>node tester.js

输出

[ 1, 2, 3 ]

lodash_seq.html