当前位置: 首页 > 文档资料 > Lazy.js 英文文档 >

values

优质
小牛编辑
136浏览
2023-12-01

Returns a Sequence whose elements are the values of this object-like sequence.

Signature

ObjectLikeSequence.values = function() { /*...*/ }
ObjectLikeSequence.values = function values() {
  return new ValuesSequence(this);
}
NameType(s)Description
returnsSequence

The sequence based on this sequence's values.

Examples

Lazy({ hello: "hola", goodbye: "hasta luego" }).values() // sequence: ["hola", "hasta luego"]