Async Explicit Resource Management
Note
This is only built-ins for this proposal, using
syntax support requires transpiler support.
Less than 1 minute
Note
This is only built-ins for this proposal, using
syntax support requires transpiler support.
Note
This is only built-ins for this proposal, using
syntax support requires transpiler support.
setTimeout
and setInterval
Additional arguments fix for IE9-:
// Before:
setTimeout(log.bind(null, 42), 1000);
// After:
setTimeout(log, 1000, 42);
Object.prototype.hasOwnProperty
interface ObjectConstructor {
hasOwn(object: object, key: PropertyKey): boolean;
}
interface Array<T> {
findLast(callbackfn: (value: T, index: number, target: Array<T>) => boolean, thisArg?: any): T;
findLastIndex(callbackfn: (value: T, index: number, target: Array<T>) => boolean, thisArg?: any): number;
}
interface TypedArray {
findLast(callbackfn: (value: any, index: number, target: ) => boolean, thisArg?: any): any;
findLastIndex(callbackfn: (value: any, index: number, target: ) => boolean, thisArg?: any): number;
}
Array.prototype.flat
& Array.prototype.flatMap
interface Array<T> {
flat(depthArg: number): Array<T>;
flatMap<U>(
mapFn: (value: T, index: number, target: Array<T>) => U | Array<U>,
thisArg: any
): Array<U>;
}
Array.prototype.includes
interface Array<T> {
includes(searchElement: T, from?: number): boolean;
}
interface TypedArray {
includes(searchElement: number, from?: number): boolean;
}
Symbol.asyncIterator
for asynchronous iterationinterface SymbolConstructor {
readonly asyncIterator: unique symbol;
}
esnext.set.add-all
esnext.set.delete-all
esnext.set.every
esnext.set.filter
esnext.set.find
esnext.set.join
esnext.set.map
esnext.set.reduce
esnext.set.some
esnext.map.delete-all
esnext.map.every
esnext.map.filter
esnext.map.find
esnext.map.find-key
esnext.map.group-by
esnext.map.includes
esnext.map.key-by
esnext.map.key-of
esnext.map.map-keys
esnext.map.map-values
esnext.map.merge
esnext.map.reduce
esnext.map.some
esnext.map.update
esnext.weak-set.add-all
esnext.weak-set.delete-all
esnext.weak-map.delete-all