12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
//// [library_StringSlice.ts]
|
|
// String.prototype.slice can have zero, one, or two arguments
|
|
String.prototype.slice();
|
|
String.prototype.slice(0);
|
|
String.prototype.slice(0,1);
|
|
|
|
|
|
//// [library_StringSlice.js]
|
|
// String.prototype.slice can have zero, one, or two arguments
|
|
String.prototype.slice();
|
|
String.prototype.slice(0);
|
|
String.prototype.slice(0, 1);
|