Chapter 14.3. Base Functions

The MochiKit.Base module provides a collection of functions to make basic programming tasks in JavaScript a bit more pleasant. Base helps out with comparison and representation of JavaScript objects, conversion to JavaScript Object Notation (JSON) format, array operations, and other useful tasks. If you use any other part of MochiKit, odds are that you’ll need to use Base, too, because MochiKit relies heavily on the functions in MochiKit.Base.

MochiKit’s interactive interpreter is really handy for trying out basic JavaScript language features. You’ll probably want to fire it up for this section.

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.