data buben dancing
by evgkch
JavaScript
const store = {
globalID: 1,
data: [
{id: 1, data: {}},
{id: 2, data: {}},
{id: 3, data: {}}
]
}
const updateStore = (prop, key) => (value) => {
let buffer;
return (typeof prop === 'object' && Array.isArray(prop)) ? console.log(true) : console.log(false)
}
updateStore(store.data, 1)(1)