planttheidea / crio

Immutable objects and arrays in a natural way
MIT License
211 stars 12 forks source link

crio array push is not a function #49

Closed ArielGueta closed 6 years ago

ArielGueta commented 6 years ago

Hey, I am trying to push new value to crio array, and it throws.

const foo = crio(['foo']);
const fooBar = foo.push('bar');
console.log('foo', fooBar);

TypeError: foo.push is not a function

planttheidea commented 6 years ago

Well that is an embarassing regression ... the one method I missed in the v4 rewrite happens to be the exact method I use in my example. My apologies, egg is all over my face.

I shall have a fix for this shortly.

planttheidea commented 6 years ago

Fixed in 4.1.2