Is there a way to use an ko.observableArray like a map/dictionary?
For example:
var arr = ko.observableArray();
arr.push('key', { '.. Some object as value ..' });
And then retrive the value using the key:
var value = arr['key'];
Found two possible implementations:
I ended up using the observableDictionary, it is fast and simple.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With