12 lines
185 B
TypeScript
12 lines
185 B
TypeScript
// @target : ES6
|
|
// @strictNullChecks: true
|
|
|
|
// for..of
|
|
for (const x of ["a", "b"]) {
|
|
x.substring;
|
|
}
|
|
|
|
// Spread
|
|
const xs = [1, 2, 3];
|
|
const ys = [4, 5];
|
|
xs.push(...ys);
|