Files
ValueScript/inputs/passing/stringMethods/endsWith.ts
Andrew Morris 11e77f36bd endsWith
2023-03-13 14:02:35 +11:00

17 lines
481 B
TypeScript

// test_output! [true,false,true,true,true,true,false,true,true,false]
export default function () {
return [
"hello".endsWith("lo"),
"hello".endsWith("l"),
"hello".endsWith("o"),
"hello".endsWith(""),
"hello".endsWith("hello"),
"Cats are the best!".endsWith("best!"),
"Cats are the best!".endsWith("best"),
"Cats are the best!".endsWith("best", 17),
"Is this a question?".endsWith("?"),
"Is this a question?".endsWith("question"),
];
}