Skip to content

Commit b150cf3

Browse files
Merge pull request then#71 from denis-sokolov/all-args-docs
Document Promise#all not taking multiple arguments
2 parents a37d938 + dcdcea6 commit b150cf3

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)