

Iterates over the properties of object, calling callback on each.
#SLAPDASH TRANSFORMERS CODE#
Reading code which uses these methods can be difficult to reason about.

There are subtleties to the behavior of each method depending on the types of the operands.al.) is that they can operate on either arrays or objects, and that they accept callbacks in the form of strings and objects, as well as simply functions. One of the most problematic aspects of using lodash's common methods (like map, each, reduce, et. If another script has tampered with the prototype (or doesn't provide one at all), we fall back to our own (small, performant) implementation. However, the first time it attempts to get a native method, it will make sure that it is the one it expected. Where possible, slapdash uses browser native methods to boost performance.This includes, for example, supporting strings in place of callbacks in map/ each/ filter etc.
#SLAPDASH TRANSFORMERS FULL#
By not implementing the full lodash/underscore API, a lot of cruft can be removed.So, Slapdash featurefills missing native methods without touching any prototypes. I mean, it doesn't even have Object.keys!. Maybe you're writing script for deployment on 3rd party sites - maybe that 3rd party decides to override Function::bind with something incompatible? Don't worry. We don't all have control over our execution environment.IE8/9 are a distant memory for most web developers, but unfortunately for some of us they remain a waking nightmare.Slapdash's prodigious speed allows him to do everything quickly-which he likes, because anything else would require effort. Be compatible with Internet Explorer 8 and up.Slapdash is a lightweight JavaScript utility belt, inspired heavily by
