toArray
优质
小牛编辑
133浏览
2023-12-01
Creates an array from the key/value pairs in this sequence.
Signature
ObjectLikeSequence.toArray = function() { /*...*/ }
ObjectLikeSequence.toArray = function toArray() { return this.pairs().toArray(); }
Name | Type(s) | Description |
---|---|---|
returns | Array | An array of |
Examples
var colorCodes = { red: "#f00", green: "#0f0", blue: "#00f" }; Lazy(colorCodes).toArray() // => [["red", "#f00"], ["green", "#0f0"], ["blue", "#00f"]]