Merge branch 'master' of github.com:coolaj86/ssjs-remedial

This commit is contained in:
AJ ONeal 2010-11-05 10:50:34 -06:00
commit e089c191a6
1 changed files with 4 additions and 3 deletions

View File

@ -10,10 +10,11 @@ This works in both the Browser and SSJS.
require('remedial'); require('remedial');
Usage / API Globals
==== ====
typeOf(o) typeOf(o)
----
Since JavaScript is a loosely-typed language, it is sometimes necessary to examine a value to determine its type. (This is sometimes necessary in strongly typed languages as well.) JavaScript provides a typeof operator to facilitate this, but typeof has problems. Since JavaScript is a loosely-typed language, it is sometimes necessary to examine a value to determine its type. (This is sometimes necessary in strongly typed languages as well.) JavaScript provides a typeof operator to facilitate this, but typeof has problems.
@ -36,8 +37,8 @@ isEmpty(v)
isEmpty(v) returns true if v is an object containing no enumerable members. isEmpty(v) returns true if v is an object containing no enumerable members.
**String Methods** String Methods
---- ====
JavaScript provides some useful methods for strings, but leaves out some important ones. Fortunately, JavaScript allows us to add new methods to the basic types. JavaScript provides some useful methods for strings, but leaves out some important ones. Fortunately, JavaScript allows us to add new methods to the basic types.