Function
indexOf
(text: string, search: string, i: number)
Source from the content-addressed store, hash-verified
| 171 | const isWhitespace = (c: number): boolean => c === SPACE || c === LF || c === CR || c === TAB |
| 172 | |
| 173 | const indexOf = (text: string, search: string, i: number): number => { |
| 174 | const index = text.indexOf(search, i) |
| 175 | return index === -1 ? text.length : index |
| 176 | } |
| 177 | |
| 178 | const isValueStart = (c: number): boolean => |
| 179 | c === QUOTE || c === LBRACKET || c === LBRACE || c === 45 || (c >= 48 && c <= 57) || c === 102 || c === 110 || |
Tested by
no test coverage detected