PageSourceSearch

https://pika.page/assets/space-separated-tokens-e3c437872089b2ece9…bc0b11f8cc90e4701ccf42daa8bfb92b4fc95de8.js

js pika.page collected 2026-10-03 21:43:28 UTC 620 bytes, 20 lines download raw bytes

1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.js
2
3/**
4 * Parse space-separated tokens to an array of strings.
5 *
6 * @param {string} value
7 *   Space-separated tokens.
8 * @returns {Array<string>}
9 *   List of tokens.
10 */
11function parse(r){const t=String(r||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}
12/**
13 * Serialize an array of strings as space separated-tokens.
14 *
15 * @param {Array<string|number>} values
16 *   List of tokens.
17 * @returns {string}
18 *   Space-separated tokens.
19 */function stringify(r){return r.join(" ").trim()}export{parse,stringify};
20

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.