Skip to content

Instantly share code, notes, and snippets.

View php-max's full-sized avatar
💪
I may be slow to respond.

PHP-Max php-max

💪
I may be slow to respond.
  • Shanghai Eyan Consulting
View GitHub Profile
// knockout 2.2.1
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ }

Here's how to build an app with something like CanJS and AMD-like modules (using steal). For this example app, consider a tree-like nested grid where you can select locations and get more information. The app might look something like:

IL
Chicago