slice version changing values from the copied version

18 views
Skip to first unread message

wwa...@spudsoftware.com

unread,
Jun 24, 2016, 2:15:14 PM6/24/16
to KnockoutJS
I'm trying to copy the properties from an observablearray into another array. I'm using a slice to do so but when I change the values of the new copied version it still also changes the values of the original array.

wwa...@spudsoftware.com

unread,
Jun 24, 2016, 3:06:29 PM6/24/16
to KnockoutJS
I figured it out. need to do a ko.toJS on the object before adding it to the new array.
Reply all
Reply to author
Forward
0 new messages