delete v. _.omit
In my Backbone application I'm receiving data from the server and modify it in a model's
parse method as the return value of the
parse method is what the Backbone Model will turn into the attributes. While almost all of the keys should become attributes, there is one that should not.
Previously I was
deleteing that value from the response object passed to the
parse method. I've been told that
omit method which I know creates a new object and copies keys and values over. I decided to find out which is more performant.
v2 ~tomByrer: + lodash
var us = _.noConflict();
var ld = _.noConflict();
Preparation code output
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Compare results of other browsers
You can edit these tests or add even more tests to this page by appending
/edit to the URL. Here’s a list of current revisions for this page: