0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
17 lines
379 B
JavaScript
17 lines
379 B
JavaScript
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)} }`
|
|
}
|