is-urlsearchparams/lib/props.js
raw| 1 | "use strict"; |
| 2 | |
| 3 | const LENIENT_PROPERTIES = |
| 4 | [ |
| 5 | "entries", |
| 6 | "sort", |
| 7 | "values" |
| 8 | ]; |
| 9 | |
| 10 | const STRICT_PROPERTIES = |
| 11 | [ |
| 12 | "append", |
| 13 | "delete", |
| 14 | "get", |
| 15 | "getAll", |
| 16 | "has", |
| 17 | "keys", |
| 18 | "set", |
| 19 | // "toString" excluded because Object::toString exists |
| 20 | ]; |
| 21 | |
| 22 | |
| 23 | |
| 24 | module.exports = { LENIENT_PROPERTIES, STRICT_PROPERTIES }; |