CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Voted
No files are attached
Igorbek wrote Jan 20 at 9:42 PM
neuecc wrote Jan 22 at 6:48 AM
Enumerable.fromObject = function (obj) { return Enumerable.Utils.createEnumerable(function () { var array = []; var index = 0; return Enumerable.Utils.createEnumerator( function () { for (var key in obj) { var value = obj[key]; if (Object.prototype.hasOwnProperty.call(obj, key)) { array.push({ key: key, value: value }); } } }, function () { return (index < array.length) ? this.yieldReturn(array[index++]) : this.yieldBreak(); }, function () { }); }) };
var xs = Enumerable.fromObject({ 'example': ko.observableArray() }).toArray();
Sign in to add a comment or to set email notifications
Keyboard shortcuts are available for this page.