Hacker News new | ask | show | jobs
by quarterto 4761 days ago
Knockout's documentation I find severely lacking. It has no API reference whatsoever (short of reading the code, which I do not recommend). It just has a set of really comprehensive tutorials. Which is great when you're starting out. Not so much when you're trying to work out if ObservableArray.prototype.remove takes a function like removeAll does. (Or was it the other way round? dammit)
1 comments

It is a good point, sometimes the finer details are lacking a bit. For instance the various helper functions under ko.utils (and there's a fair few of them) aren't documented at all.

However, you're not quite right with your assertion above. The docs clearly describe the params that both of those methods can take (remove takes a reference/value, removeAll an array or function or nothing)

http://knockoutjs.com/documentation/observableArrays.html#re...