We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im not sure if im doing this wrong. I am just trying to concatenate 2 arrays with the below code
//This doesn't work db('test').concat([3,4]); db.save(); //This works db('test').chain().assign(db.object.test.concat([3,4])).value();
Is this a bug? Is there a easier syntax then the second one?
The text was updated successfully, but these errors were encountered:
Not really a bug, it's because concat returns a new array instead of changing it: https://lodash.com/docs#prototype-concat
concat
Maybe an easier syntax:
db.object.test = db('test').concat([3, 4]) db.save()
Sorry, something went wrong.
Oh OK. I get it. Thanks.
No branches or pull requests
Im not sure if im doing this wrong. I am just trying to concatenate 2 arrays with the below code
Is this a bug? Is there a easier syntax then the second one?
The text was updated successfully, but these errors were encountered: