Chapter 14.3.12. Functions in MochiKit.Base
MochiKit.Baseis also the home to other utility functions that don’t more properly belong in a different module.
camelize(str) Converts a hyphenated string to camelCase
clone(obj) Returns a shallow clone of an object
counter(n=1) Returns a number that is one greater than the previous value, starting at n
isDateLike(obj[,...]) Returns true if all of the objects passed in have a .getTime method
isEmpty(obj[,...]) Returns true if obj.length==0 for all objects passed in
isNotEmpty(obj[,...]) Returns true if obj.length > 0 for all objects passed in
isNull(obj[,...]) Returns true if all arguments are null
isUndefinedOrNull(obj[,...]) Returns true if all arguments are undefined or null
keyComparator(key Returns ...
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.