protoblast
Advanced tools
Changelog
0.3.6 (2017-04-17)
Blast.isEdge
to detect and fix Edge issuesJSON.undry
will now parse null
strings correctlyFunction.throttle
has a new parameter reset_on_call
, to delay execution as long as it's being called on.Object.size()
will now always return a numberObject.size()
will now also work on RegExp and Date objectsRequest
class will callback with an error for status codes >= 400Number#formatMoney(decimal_count, decimal_separator, thousand_separator)
Function.thrower
dummy callback will no longer throw falsy valuesChangelog
0.3.5 (2017-01-21)
String#endsWith
so empty strings will return trueString#endsWith
and String#startsWith
shimsChangelog
0.3.4 (2017-01-21)
Object.checksum
using valueOf
on an object without prototypeunmethodize
and methodize
shouldn't get stuck in a loop because of the function nameObject.alike
performance and add testsFunction.inherits
that skips constitutors when falsyString.decodeAttributes
Changelog
0.3.2 (2016-10-04)
asyncLoop
functions (like Function.while) will now execute test
and task function in the same tick, in stead of first checking
the test, then doing the task on the next tickObject.checksum
no longer skips undefined values in objectsString#decodeHTML()
should now handle hexadecimal entities properlyhasOwnProperty
method before using it in JSON-DryObject.checksum
should also checksumize RegExps correctlyRegExp.interpret
now also accepts flags as second parameterChangelog
0.3.1 (2016-07-02)
Number.calculateNormalizeFactors
and Number.normalize
methodsMath.removeOutliers(arr)
which returns a new array without outliersNumber.denormalize
Changelog
0.3.0 (2016-06-22)
Informer#unsee
method, so 'after' and such can be resetNumber#bitAt
method, to return the bit at the specified positionArray#clip
'highest' value is now optionalArray#employ
has been removedFunction.benchmark
will now calculate overhead based on self-created dummiesChangelog
0.2.1 (2016-06-06)
queue_drop
option to FunctionQueue, which will limit amount of items
in a function queue by dropping older added tasksArray.likeArray
to determine if an object is like an arrayObject.dissect
will only add numeric array properties to the resultBlast.setTimeout
and Blast.setSchedule
for more precise timersString.randomMac
to generate a random mac addressFunction.getNamespace
to get/create a namespace objectBlast.DEBUG
is now true if there is a DEBUG environment variableChangelog
0.2.0 (2016-05-02)
Function.inherits
JSON.clone
will now also look for #dryClone(wm)
and #clone()
methodsJSON.clone
second parameter is an optional method name to use for cloningJSONPath
String#fillPlaceholders
can now remove used values from the given objectDate#setTimestring
to set the time in order of '12:00:00'JSON.safeParse
Function.hinder
can now call pushed tasks with an error and other datatoDry
methods no longer need to return a 'path' property for undryingObject.walk
returns false, it won't recurseObject.getPropertyDescriptor
, which will look for a descriptor
up the prototype chainsuper
property
reference to the function they're overridingFunction.setStatic
properties can now be overwrittenFunction.setStatic
can now optionally not be inheritedBlast.createObjectId
for the browserObject.merge
should now correctly assign objects over primitive values