Function mozjs::jsapi::js::StringIsArrayIndex

source ·
pub unsafe extern "C" fn StringIsArrayIndex(
    str_: *mut JSLinearString,
    indexp: *mut u32
) -> bool
Expand description

Determine whether the given string is an array index in the sense of https://tc39.github.io/ecma262/#array-index.

If it isn’t, returns false.

If it is, returns true and outputs the index in *indexp.