Skip to content

Commit dcdcea6

Browse files
committed
Document Promise#all not taking multiple arguments
This functionality has been removed in 0498f7c.
1 parent a37d938 commit dcdcea6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Readme.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Converts values and foreign promises into Promises/A+ promises. If you pass it
7171

7272
#### Promise.all(array)
7373

74-
Returns a promise for an array. If it is called with a single argument that `Array.isArray` then this returns a promise for a copy of that array with any promises replaced by their fulfilled values. Otherwise it returns a promise for an array that conatins its arguments, except with promises replaced by their resolution values. e.g.
74+
Returns a promise for an array. If it is called with a single argument that `Array.isArray` then this returns a promise for a copy of that array with any promises replaced by their fulfilled values. e.g.
7575

7676
```js
7777
Promise.all([Promise.resolve('a'), 'b', Promise.resolve('c')])
@@ -80,13 +80,6 @@ Promise.all([Promise.resolve('a'), 'b', Promise.resolve('c')])
8080
assert(res[1] === 'b')
8181
assert(res[2] === 'c')
8282
})
83-
84-
Promise.all(Promise.resolve('a'), 'b', Promise.resolve('c'))
85-
.then(function (res) {
86-
assert(res[0] === 'a')
87-
assert(res[1] === 'b')
88-
assert(res[2] === 'c')
89-
})
9083
```
9184

9285
#### Promise.denodeify(fn)

0 commit comments

Comments
 (0)