Comparing version 2.0.0 to 2.0.1
10
index.js
'use strict'; //jshint node:true | ||
var has = {}.hasOwnProperty | ||
@@ -22,3 +23,4 @@ exports.get = get | ||
var ret = {} | ||
Object.keys(obj).forEach(function(key) { ret[key] = obj[key] }) | ||
for (var curKey in obj) if (has.call(obj, curKey)) | ||
ret[curKey] = obj[curKey] | ||
ret[key] = value | ||
@@ -39,5 +41,5 @@ return ret | ||
var ret = {} | ||
Object.keys(obj) | ||
.filter(function(curKey) { return curKey !== key }) | ||
.forEach(function(key) { ret[key] = obj[key] }) | ||
for (var curKey in obj) if (has.call(obj, curKey)) | ||
if (curKey !== key) | ||
ret[curKey] = obj[curKey] | ||
return ret | ||
@@ -44,0 +46,0 @@ } |
{ | ||
"name": "fun-map", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": " a few functional utilities for pretending that JS objects are Clojure string maps.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2476
56