Skip to content

Commit e069d88

Browse files
Merge pull request then#97 from TehShrike/patch-1
Adding Promise.reject
2 parents 53cb380 + d7bbf5d commit e069d88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ This creates and returns a new promise. `resolver` must be a function. The `re
101101

102102
Converts values and foreign promises into Promises/A+ promises. If you pass it a value then it returns a Promise for that value. If you pass it something that is close to a promise (such as a jQuery attempt at a promise) it returns a Promise that takes on the state of `value` (rejected or fulfilled).
103103

104+
#### Promise.reject(value)
105+
106+
Returns a rejected promise with the given value.
107+
104108
#### Promise.all(array)
105109

106110
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.

0 commit comments

Comments
 (0)