Skip to content

Commit b79e9b9

Browse files
committed
Update README.
1 parent b79033a commit b79e9b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ returns ["b", "c", "a"]. It is acceptable for the array of indexes to be a diffe
175175
This method can also be used to extract the values from an object into an array with a stable order. Extracting keyed values in order can be useful for generating data arrays in nested selections. For example:
176176

177177
```js
178-
var yield = {yield: 27, variety: "Manchuria", year: 1931, site: "University Farm"},
178+
var object = {yield: 27, variety: "Manchuria", year: 1931, site: "University Farm"},
179179
fields = ["site", "variety", "yield"];
180180

181-
console.log(permute(yield, fields)); // ["University Farm", "Manchuria", 27]
181+
console.log(permute(object, fields)); // ["University Farm", "Manchuria", 27]
182182
```
183183

184184
<a name="zip" href="#zip">#</a> <b>zip</b>(<i>arrays…</i>)

0 commit comments

Comments
 (0)