dojo/_base/lang¶
since: | V0.9 |
---|
Contents
dojo._base.lang contains functions for supporting Polymorphism.
As with all dojo._base components, these functions are included within Dojo Base. You get this functionality by just including dojo.js
in your page.
Features¶
-
Function that generates a wrapper function that ensures a function that will only ever execute in a defined scope.
-
Function that generates a wrapper function that ensures a function will only ever execute globally.
-
Clones objects (including DOM nodes) and all children.
-
Returns a new object which “looks” to obj for properties which it does not have a value for.
-
Checks if the parameter is a String
-
Checks if the parameter is an Array
-
Checks if the parameter is a Function
-
Checks if the parameter is a Object
-
Checks if the parameter is like an Array
-
Checks if the parameter is a built-in function
-
Trim whitespace from a String
-
Simple templates with parameterized substitutions.
-
Mixes one object into another. Can be used as a shallow copy
-
Get a property from a dot-separated string, such as “A.B.C”
-
Set a property from a dot-separated string, such as “A.B.C”