You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var a = [{'id':'xxx'}];
console.log(dot.object(dot.dot(a)));
Object {
0: Object {
id: 'xxx'
}
}
I understand when dot.object() is called it knows nothing about the argument passed to dot.dot() and assuming properties are actually array indices just because they're ints might be problematic. But, if they're all ints and contiguous maybe it'd be a safe assumption?
Was hoping I'd get back what I started with...
var a = [{'id':'xxx'}];
console.log(dot.object(dot.dot(a)));
Object {
0: Object {
id: 'xxx'
}
}
I understand when dot.object() is called it knows nothing about the argument passed to dot.dot() and assuming properties are actually array indices just because they're ints might be problematic. But, if they're all ints and contiguous maybe it'd be a safe assumption?
https://codepen.io/ecarey/pen/owJLJO
Kudos on the library by the way. I appreciate your work.
The text was updated successfully, but these errors were encountered: