pub fn parse_complete(text: &str, index: usize) -> Option<(JsValue, usize)>
Like parse_literal, but the literal must end its expression ([...].map(f) is not one).
parse_literal
[...].map(f)