-
Notifications
You must be signed in to change notification settings - Fork 0
Class
Malexion edited this page Oct 31, 2016
·
2 revisions
-
construct
Constructor function, can set internal properties withthis.[...]
, passed new myclass(...) args. -
methods
Class methods object, key = function name, value = function. -
[inherit]
[Optional] Class or array of classes to inherit from. Avoid inheriting primitive classes.
var MyBaseClass = __.class(function(value) {
this.myProperty = value;
}, {
myValue: {
get: function() { return this.myProperty; },
set: function(value) { this.myProperty = value; }
}
});
var MyClass = __.class(function(value) {
MyBaseClass.call(this, value);
}, {
each: function(func) {
__.all(this, func);
}
}, MyBaseClass);
- 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