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 setIntervalAdditional arguments fix for IE9-:
// Before:
setTimeout(log.bind(null, 42), 1000);
// After:
setTimeout(log, 1000, 42);
Object.prototype.hasOwnPropertyinterface 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.flatMapinterface 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.includesinterface 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-allesnext.set.delete-allesnext.set.everyesnext.set.filteresnext.set.findesnext.set.joinesnext.set.mapesnext.set.reduceesnext.set.someesnext.map.delete-allesnext.map.everyesnext.map.filteresnext.map.findesnext.map.find-keyesnext.map.group-byesnext.map.includesesnext.map.key-byesnext.map.key-ofesnext.map.map-keysesnext.map.map-valuesesnext.map.mergeesnext.map.reduceesnext.map.someesnext.map.updateesnext.weak-set.add-allesnext.weak-set.delete-allesnext.weak-map.delete-all