Download node_modules/loupe/lib/set.js from Snapkitty/sovereign-apollo: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/loupe/lib/set.js
- Command line
-
hf download hf://Snapkitty/sovereign-apollo/node_modules/loupe/lib/set.js
-
curl -L -o set.js https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/loupe/lib/set.js
395 Bytes
| import { inspectList } from './helpers' | |
| // IE11 doesn't support `Array.from(set)` | |
| function arrayFromSet(set) { | |
| const values = [] | |
| set.forEach(value => { | |
| values.push(value) | |
| }) | |
| return values | |
| } | |
| export default function inspectSet(set, options) { | |
| if (set.size === 0) return 'Set{}' | |
| options.truncate -= 7 | |
| return `Set{ ${inspectList(arrayFromSet(set), options)} }` | |
| } | |