(replacerArray)
| 200 | } |
| 201 | |
| 202 | function getUniqueReplacerSet (replacerArray) { |
| 203 | const replacerSet = new Set() |
| 204 | for (const value of replacerArray) { |
| 205 | if (typeof value === 'string' || typeof value === 'number') { |
| 206 | replacerSet.add(String(value)) |
| 207 | } |
| 208 | } |
| 209 | return replacerSet |
| 210 | } |
| 211 | |
| 212 | function getStrictOption (options) { |
| 213 | if (hasOwnProperty.call(options, 'strict')) { |