protoblast
Advanced tools
Changelog
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 valuesChangelog
0.1.12 (2016-02-03)
Date#format('L')
now returns a boolean instead of a stringChangelog
0.1.11 (2016-01-08)
String#slug
now removes diacritics and separator repeatsObject.merge
, still not ready for release thoughgetChildren
method to class functionsArray#include
now appends when no index is givenDate.create
now accepts a valueDate.difference
now uses Date.create
instead of new Date
Array#include
correctly handles single argumentObject.first
#valueOf()
when getting object checksums,
fixes Date
instances getting the same checksumsString#fixHTML
and String#truncateHTML
Object.setPath
Object.formPath
and Object.setFormPath
JSON.clone
is now much more performant than the old methodFunction.hinder
object