Date

“Seq” Methods

_.prototype.at([paths])

source

This method is the wrapper version of _.at.

引入版本

1.0.0

参数
[paths] (...(string|string[])) : The property paths to pick.

返回值
(Object) : Returns the new lodash wrapper instance.

示例
var object = { 'a': [{ 'b': { 'c'3 } }, 4] };
 
_(object).at(['a[0].b.c', 'a[1]']).value();
// => [3, 4]