-
Notifications
You must be signed in to change notification settings - Fork 0
Options
Malexion edited this page Oct 31, 2016
·
3 revisions
-
base
Object to layer onto. -
params
Item to check for fusion.
var mySampleFunction = function(params) {
var options = __.options({ foo: 'bar', deep: false }, params);
return options;
};
console.log(mySampleFunction({ foo: 2 }));
console.log(mySampleFunction({ foo: 'xyz', deep: true }));
console.log(mySampleFunction()); // checks for the existence of params.
- Home
- String Prototype Functions
- Replace All
- Replace While
- Format
- Contains
- Whiteout
- Capitalize
- First Word
- Truncate
- Base Functions
- All
- Class
- Contains
- Count
- Debounce
- Deep All
- Distinct
- Enum
- First
- Filter
- Fuse
- Get Type
- Group
- Index
- Intersect
- Last
- Map
- Match
- Move
- Options
- Get Property
- Rank
- Remove
- Remove At
- Scope
- Search
- Sort
- Switch
- Throttle
- Formats
- Pad Left
- Pad Right
- Type Detection
- Defined
- Set
- Same Type
- Function
- Object
- Array
- Arguments
- Boolean
- String
- Number
- Date
- Null
- Undefined
- NaN
- Math
- Random 16-bit
- Round To
- Round Down To
- Round Up To
- Median
- Sum
- Average
- Max
- Min
- Between
- Percentage
- Generators
- Guid
- Password
- Classes
- Overwrite
- Updatable