UNPKG

d3-view

Version:

View-model d3 plugin for building interactive data-driven web interfaces

5 lines (4 loc) • 118 B
export default obj => { if (obj && obj.constructor === Object) obj = Object.entries(obj); return new Map(obj); };