script::dom::bindings::utils

Function get_array_index_from_id

Source
pub(crate) fn get_array_index_from_id(
    id: Handle<'_, PropertyKey>,
) -> Option<u32>
Expand description

Get an array index from the given jsid. Returns None if the given jsid is not an integer.