mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 15:38:06 -05:00
18 lines
347 B
TypeScript
18 lines
347 B
TypeScript
// test_output! [[4,2,4,6],[-1,-1]]
|
|
|
|
export default function () {
|
|
const positive = [
|
|
" xxx".lastIndexOf("x"),
|
|
"xxx ".lastIndexOf("x"),
|
|
" xxx ".lastIndexOf("x"),
|
|
" xyxyxy ".lastIndexOf("xy"),
|
|
];
|
|
|
|
const negative = [
|
|
" xxx ".lastIndexOf("x", 5),
|
|
"abc".lastIndexOf("abcd"),
|
|
];
|
|
|
|
return [positive, negative];
|
|
}
|