Search code examples
javascriptcappuccinoobjective-j

Can CPPredicates be used on native javascript objects?


Can you use a CPPredicate to check native javascript objects in cappuccino? I am trying to filter a native javascript array that has native javascript objects in it.


Solution

  • It's not likely to work. Objective-J objects have a few more features than JS object which I'm sure the predicate advantage of.

    You can easily convert JS objects to CPDictionaries and back again though.