memoizerific
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"package.json","tooltip":"/package.json","undoManager":{"mark":88,"position":88,"stack":[[{"start":{"row":1,"column":11},"end":{"row":1,"column":22},"action":"remove","lines":["memoize-lru"],"id":2},{"start":{"row":1,"column":11},"end":{"row":1,"column":23},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":22},"action":"remove","lines":["memoize-lru"],"id":3},{"start":{"row":4,"column":11},"end":{"row":4,"column":23},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":10,"column":45},"end":{"row":10,"column":56},"action":"remove","lines":["memoize-lru"],"id":4},{"start":{"row":10,"column":45},"end":{"row":10,"column":57},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":26,"column":41},"end":{"row":26,"column":52},"action":"remove","lines":["memoize-lru"],"id":5},{"start":{"row":26,"column":41},"end":{"row":26,"column":53},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":28,"column":44},"end":{"row":28,"column":55},"action":"remove","lines":["memoize-lru"],"id":6},{"start":{"row":28,"column":44},"end":{"row":28,"column":56},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":23,"column":0},"end":{"row":24,"column":19},"action":"remove","lines":[" \"author\": \"@thinkloop\","," \"license\": \"MIT\","],"id":7}],[{"start":{"row":3,"column":85},"end":{"row":4,"column":0},"action":"insert","lines":["",""],"id":8},{"start":{"row":4,"column":0},"end":{"row":4,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":4,"column":0},"end":{"row":5,"column":19},"action":"insert","lines":[" \"author\": \"@thinkloop\","," \"license\": \"MIT\","],"id":9}],[{"start":{"row":5,"column":19},"end":{"row":5,"column":21},"action":"remove","lines":[" "],"id":10},{"start":{"row":5,"column":19},"end":{"row":6,"column":0},"action":"insert","lines":["",""]},{"start":{"row":6,"column":0},"end":{"row":6,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":29,"column":3},"end":{"row":30,"column":64},"action":"remove","lines":[","," \"homepage\": \"https://github.com/thinkloop/memoizerific#readme\""],"id":11}],[{"start":{"row":5,"column":18},"end":{"row":6,"column":64},"action":"insert","lines":[","," \"homepage\": \"https://github.com/thinkloop/memoizerific#readme\""],"id":12}],[{"start":{"row":26,"column":3},"end":{"row":30,"column":3},"action":"remove","lines":[",",""," \"bugs\": {"," \"url\": \"https://github.com/thinkloop/memoizerific/issues\""," }"],"id":13}],[{"start":{"row":6,"column":64},"end":{"row":10,"column":3},"action":"insert","lines":[",",""," \"bugs\": {"," \"url\": \"https://github.com/thinkloop/memoizerific/issues\""," }"],"id":14}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":15}],[{"start":{"row":8,"column":61},"end":{"row":9,"column":2},"action":"remove","lines":[""," "],"id":16},{"start":{"row":8,"column":61},"end":{"row":8,"column":62},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":11},"end":{"row":8,"column":4},"action":"remove","lines":[""," "],"id":17},{"start":{"row":7,"column":11},"end":{"row":7,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":13,"column":0},"end":{"row":16,"column":4},"action":"remove","lines":[" \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/thinkloop/memoizerific.git\""," },"],"id":18}],[{"start":{"row":6,"column":65},"end":{"row":7,"column":0},"action":"insert","lines":["",""],"id":19},{"start":{"row":7,"column":0},"end":{"row":7,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":0},"end":{"row":10,"column":4},"action":"insert","lines":[" \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/thinkloop/memoizerific.git\""," },"],"id":20}],[{"start":{"row":9,"column":62},"end":{"row":10,"column":2},"action":"remove","lines":[""," "],"id":21},{"start":{"row":9,"column":62},"end":{"row":9,"column":63},"action":"insert","lines":[" "]}],[{"start":{"row":8,"column":18},"end":{"row":9,"column":4},"action":"remove","lines":[""," "],"id":22},{"start":{"row":8,"column":18},"end":{"row":8,"column":19},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":17},"end":{"row":8,"column":4},"action":"remove","lines":[""," "],"id":23},{"start":{"row":7,"column":17},"end":{"row":7,"column":18},"action":"insert","lines":[" "]}],[{"start":{"row":22,"column":5},"end":{"row":22,"column":10},"action":"remove","lines":["least"],"id":24},{"start":{"row":22,"column":5},"end":{"row":22,"column":6},"action":"insert","lines":["c"]}],[{"start":{"row":22,"column":6},"end":{"row":22,"column":7},"action":"insert","lines":["a"],"id":25}],[{"start":{"row":22,"column":7},"end":{"row":22,"column":8},"action":"insert","lines":["c"],"id":26}],[{"start":{"row":22,"column":8},"end":{"row":22,"column":9},"action":"insert","lines":["h"],"id":27}],[{"start":{"row":22,"column":9},"end":{"row":22,"column":10},"action":"insert","lines":["e"],"id":28}],[{"start":{"row":22,"column":12},"end":{"row":24,"column":10},"action":"remove","lines":[""," \"recently\","," \"used\""],"id":29}],[{"start":{"row":22,"column":11},"end":{"row":22,"column":12},"action":"remove","lines":[","],"id":30}],[{"start":{"row":22,"column":11},"end":{"row":23,"column":2},"action":"remove","lines":[""," "],"id":31},{"start":{"row":22,"column":11},"end":{"row":22,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":21,"column":10},"end":{"row":22,"column":4},"action":"remove","lines":[""," "],"id":32},{"start":{"row":21,"column":10},"end":{"row":21,"column":11},"action":"insert","lines":[" "]}],[{"start":{"row":20,"column":9},"end":{"row":21,"column":4},"action":"remove","lines":[""," "],"id":33},{"start":{"row":20,"column":9},"end":{"row":20,"column":10},"action":"insert","lines":[" "]}],[{"start":{"row":19,"column":17},"end":{"row":20,"column":4},"action":"remove","lines":[""," "],"id":34},{"start":{"row":19,"column":17},"end":{"row":19,"column":18},"action":"insert","lines":[" "]}],[{"start":{"row":18,"column":18},"end":{"row":19,"column":4},"action":"remove","lines":[""," "],"id":35},{"start":{"row":18,"column":18},"end":{"row":18,"column":19},"action":"insert","lines":[" "]}],[{"start":{"row":17,"column":15},"end":{"row":18,"column":4},"action":"remove","lines":[""," "],"id":36},{"start":{"row":17,"column":15},"end":{"row":17,"column":16},"action":"insert","lines":[" "]}],[{"start":{"row":16,"column":14},"end":{"row":17,"column":4},"action":"remove","lines":[""," "],"id":37},{"start":{"row":16,"column":14},"end":{"row":16,"column":15},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":15},"end":{"row":16,"column":4},"action":"remove","lines":[""," "],"id":38},{"start":{"row":15,"column":15},"end":{"row":15,"column":16},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":15},"end":{"row":15,"column":16},"action":"remove","lines":[" "],"id":39}],[{"start":{"row":15,"column":87},"end":{"row":15,"column":88},"action":"remove","lines":[" "],"id":40}],[{"start":{"row":15,"column":2},"end":{"row":15,"column":88},"action":"remove","lines":["\"keywords\": [\"memoize\", \"memoizer\", \"memoization\", \"javascript\", \"js\", \"lru\", \"cache\"]"],"id":41}],[{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"remove","lines":[" "],"id":42}],[{"start":{"row":14,"column":0},"end":{"row":15,"column":0},"action":"remove","lines":["",""],"id":43}],[{"start":{"row":13,"column":4},"end":{"row":14,"column":0},"action":"remove","lines":["",""],"id":44}],[{"start":{"row":13,"column":3},"end":{"row":13,"column":4},"action":"remove","lines":[","],"id":45}],[{"start":{"row":13,"column":3},"end":{"row":13,"column":4},"action":"insert","lines":[","],"id":48}],[{"start":{"row":13,"column":4},"end":{"row":14,"column":0},"action":"insert","lines":["",""],"id":49},{"start":{"row":14,"column":0},"end":{"row":14,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":14,"column":2},"end":{"row":15,"column":0},"action":"insert","lines":["",""],"id":50},{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":2},"end":{"row":15,"column":88},"action":"insert","lines":["\"keywords\": [\"memoize\", \"memoizer\", \"memoization\", \"javascript\", \"js\", \"lru\", \"cache\"]"],"id":51}],[{"start":{"row":10,"column":23},"end":{"row":10,"column":24},"action":"insert","lines":["."],"id":52}],[{"start":{"row":10,"column":24},"end":{"row":10,"column":25},"action":"insert","lines":["m"],"id":53}],[{"start":{"row":10,"column":25},"end":{"row":10,"column":26},"action":"insert","lines":["i"],"id":54}],[{"start":{"row":10,"column":26},"end":{"row":10,"column":27},"action":"insert","lines":["n"],"id":55}],[{"start":{"row":7,"column":17},"end":{"row":8,"column":3},"action":"insert","lines":[""," "],"id":56,"ignore":true},{"start":{"row":8,"column":18},"end":{"row":9,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":9,"column":62},"end":{"row":10,"column":1},"action":"insert","lines":[""," "]},{"start":{"row":10,"column":4},"end":{"row":10,"column":6},"action":"remove","lines":[" "]},{"start":{"row":11,"column":11},"end":{"row":12,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":12,"column":61},"end":{"row":12,"column":64},"action":"remove","lines":[" },"]},{"start":{"row":13,"column":2},"end":{"row":13,"column":4},"action":"insert","lines":["},"]},{"start":{"row":18,"column":0},"end":{"row":19,"column":0},"action":"remove","lines":[" ",""]},{"start":{"row":18,"column":15},"end":{"row":19,"column":4},"action":"insert","lines":[""," "]},{"start":{"row":19,"column":14},"end":{"row":20,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":20,"column":15},"end":{"row":21,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":21,"column":18},"end":{"row":22,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":22,"column":17},"end":{"row":23,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":23,"column":9},"end":{"row":24,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":24,"column":10},"end":{"row":25,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":25,"column":11},"end":{"row":25,"column":12},"action":"remove","lines":["]"]},{"start":{"row":25,"column":11},"end":{"row":29,"column":3},"action":"insert","lines":[""," ],"," \"dependencies\": {"," \"pseudomap\": \"^1.0.2\""," }"]}],[{"start":{"row":27,"column":19},"end":{"row":29,"column":2},"action":"remove","lines":[""," \"pseudomap\": \"^1.0.2\""," "],"id":57,"ignore":true}],[{"start":{"row":27,"column":20},"end":{"row":30,"column":3},"action":"insert","lines":[","," \"devDependencies\": {"," \"gulp\": \"^3.9.0\""," }"],"id":58,"ignore":true}],[{"start":{"row":29,"column":20},"end":{"row":30,"column":25},"action":"insert","lines":[","," \"gulp-util\": \"^3.0.7\""],"id":59,"ignore":true}],[{"start":{"row":30,"column":25},"end":{"row":31,"column":35},"action":"insert","lines":[","," \"vinyl-source-stream\": \"^1.1.0\""],"id":60,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"vinyl-buffer\": \"^1.0.0\",",""],"id":61,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"run-sequence\": \"^1.1.5\",",""],"id":62,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"browserify\": \"^13.0.0\",",""],"id":63,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"gulp-uglify\": \"^1.5.1\",",""],"id":64,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"gulp-streamify\": \"^1.0.2\",",""],"id":65,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babelify\": \"^7.2.0\",",""],"id":66,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":67,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"remove","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":68,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"remove","lines":[" \"babelify\": \"^7.2.0\",",""],"id":69,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babelify\": \"^7.2.0\",",""],"id":70,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":71,"ignore":true}],[{"start":{"row":32,"column":0},"end":{"row":33,"column":0},"action":"insert","lines":[" \"browserify-umdify\": \"^1.0.3\",",""],"id":72,"ignore":true}],[{"start":{"row":32,"column":0},"end":{"row":33,"column":0},"action":"remove","lines":[" \"browserify-umdify\": \"^1.0.3\",",""],"id":73,"ignore":true}],[{"start":{"row":37,"column":0},"end":{"row":38,"column":0},"action":"insert","lines":[" \"umdify\": \"^0.1.0\",",""],"id":74,"ignore":true}],[{"start":{"row":39,"column":35},"end":{"row":40,"column":28},"action":"insert","lines":[","," \"webpack\": \"^2.0.6-beta\""],"id":75,"ignore":true}],[{"start":{"row":39,"column":35},"end":{"row":40,"column":28},"action":"remove","lines":[","," \"webpack\": \"^2.0.6-beta\""],"id":76,"ignore":true}],[{"start":{"row":20,"column":4},"end":{"row":20,"column":15},"action":"remove","lines":["\"memoizer\","],"id":77},{"start":{"row":20,"column":4},"end":{"row":20,"column":15},"action":"insert","lines":["\"memoizer\","]}],[{"start":{"row":21,"column":18},"end":{"row":22,"column":0},"action":"insert","lines":["",""],"id":78},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":22,"column":4},"end":{"row":22,"column":15},"action":"insert","lines":["\"memoizer\","],"id":79}],[{"start":{"row":22,"column":12},"end":{"row":22,"column":13},"action":"remove","lines":["r"],"id":80}],[{"start":{"row":22,"column":12},"end":{"row":22,"column":13},"action":"insert","lines":["d"],"id":81}],[{"start":{"row":14,"column":11},"end":{"row":14,"column":12},"action":"insert","lines":["s"],"id":82}],[{"start":{"row":14,"column":12},"end":{"row":14,"column":13},"action":"insert","lines":["r"],"id":83}],[{"start":{"row":14,"column":13},"end":{"row":14,"column":14},"action":"insert","lines":["c"],"id":84}],[{"start":{"row":14,"column":14},"end":{"row":14,"column":15},"action":"insert","lines":["/"],"id":85}],[{"start":{"row":14,"column":27},"end":{"row":14,"column":31},"action":"remove","lines":[".min"],"id":86}],[{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"remove","lines":["0"],"id":87,"ignore":true},{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"insert","lines":["1"]}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"remove","lines":["m"],"id":88}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["M"],"id":89}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"remove","lines":["M"],"id":90}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["m"],"id":91}],[{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"remove","lines":["1"],"id":92,"ignore":true},{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"insert","lines":["2"]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":1,"column":12},"end":{"row":1,"column":12},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1454326158479,"hash":"32fcfc70bb70d84bbe1f4109d8f6e55c8d75b2d9"} | ||
{"filter":false,"title":"package.json","tooltip":"/package.json","undoManager":{"mark":162,"position":162,"stack":[[{"start":{"row":1,"column":11},"end":{"row":1,"column":22},"action":"remove","lines":["memoize-lru"],"id":2},{"start":{"row":1,"column":11},"end":{"row":1,"column":23},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":22},"action":"remove","lines":["memoize-lru"],"id":3},{"start":{"row":4,"column":11},"end":{"row":4,"column":23},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":10,"column":45},"end":{"row":10,"column":56},"action":"remove","lines":["memoize-lru"],"id":4},{"start":{"row":10,"column":45},"end":{"row":10,"column":57},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":26,"column":41},"end":{"row":26,"column":52},"action":"remove","lines":["memoize-lru"],"id":5},{"start":{"row":26,"column":41},"end":{"row":26,"column":53},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":28,"column":44},"end":{"row":28,"column":55},"action":"remove","lines":["memoize-lru"],"id":6},{"start":{"row":28,"column":44},"end":{"row":28,"column":56},"action":"insert","lines":["memoizerific"]}],[{"start":{"row":23,"column":0},"end":{"row":24,"column":19},"action":"remove","lines":[" \"author\": \"@thinkloop\","," \"license\": \"MIT\","],"id":7}],[{"start":{"row":3,"column":85},"end":{"row":4,"column":0},"action":"insert","lines":["",""],"id":8},{"start":{"row":4,"column":0},"end":{"row":4,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":4,"column":0},"end":{"row":5,"column":19},"action":"insert","lines":[" \"author\": \"@thinkloop\","," \"license\": \"MIT\","],"id":9}],[{"start":{"row":5,"column":19},"end":{"row":5,"column":21},"action":"remove","lines":[" "],"id":10},{"start":{"row":5,"column":19},"end":{"row":6,"column":0},"action":"insert","lines":["",""]},{"start":{"row":6,"column":0},"end":{"row":6,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":29,"column":3},"end":{"row":30,"column":64},"action":"remove","lines":[","," \"homepage\": \"https://github.com/thinkloop/memoizerific#readme\""],"id":11}],[{"start":{"row":5,"column":18},"end":{"row":6,"column":64},"action":"insert","lines":[","," \"homepage\": \"https://github.com/thinkloop/memoizerific#readme\""],"id":12}],[{"start":{"row":26,"column":3},"end":{"row":30,"column":3},"action":"remove","lines":[",",""," \"bugs\": {"," \"url\": \"https://github.com/thinkloop/memoizerific/issues\""," }"],"id":13}],[{"start":{"row":6,"column":64},"end":{"row":10,"column":3},"action":"insert","lines":[",",""," \"bugs\": {"," \"url\": \"https://github.com/thinkloop/memoizerific/issues\""," }"],"id":14}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":15}],[{"start":{"row":8,"column":61},"end":{"row":9,"column":2},"action":"remove","lines":[""," "],"id":16},{"start":{"row":8,"column":61},"end":{"row":8,"column":62},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":11},"end":{"row":8,"column":4},"action":"remove","lines":[""," "],"id":17},{"start":{"row":7,"column":11},"end":{"row":7,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":13,"column":0},"end":{"row":16,"column":4},"action":"remove","lines":[" \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/thinkloop/memoizerific.git\""," },"],"id":18}],[{"start":{"row":6,"column":65},"end":{"row":7,"column":0},"action":"insert","lines":["",""],"id":19},{"start":{"row":7,"column":0},"end":{"row":7,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":0},"end":{"row":10,"column":4},"action":"insert","lines":[" \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/thinkloop/memoizerific.git\""," },"],"id":20}],[{"start":{"row":9,"column":62},"end":{"row":10,"column":2},"action":"remove","lines":[""," "],"id":21},{"start":{"row":9,"column":62},"end":{"row":9,"column":63},"action":"insert","lines":[" "]}],[{"start":{"row":8,"column":18},"end":{"row":9,"column":4},"action":"remove","lines":[""," "],"id":22},{"start":{"row":8,"column":18},"end":{"row":8,"column":19},"action":"insert","lines":[" "]}],[{"start":{"row":7,"column":17},"end":{"row":8,"column":4},"action":"remove","lines":[""," "],"id":23},{"start":{"row":7,"column":17},"end":{"row":7,"column":18},"action":"insert","lines":[" "]}],[{"start":{"row":22,"column":5},"end":{"row":22,"column":10},"action":"remove","lines":["least"],"id":24},{"start":{"row":22,"column":5},"end":{"row":22,"column":6},"action":"insert","lines":["c"]}],[{"start":{"row":22,"column":6},"end":{"row":22,"column":7},"action":"insert","lines":["a"],"id":25}],[{"start":{"row":22,"column":7},"end":{"row":22,"column":8},"action":"insert","lines":["c"],"id":26}],[{"start":{"row":22,"column":8},"end":{"row":22,"column":9},"action":"insert","lines":["h"],"id":27}],[{"start":{"row":22,"column":9},"end":{"row":22,"column":10},"action":"insert","lines":["e"],"id":28}],[{"start":{"row":22,"column":12},"end":{"row":24,"column":10},"action":"remove","lines":[""," \"recently\","," \"used\""],"id":29}],[{"start":{"row":22,"column":11},"end":{"row":22,"column":12},"action":"remove","lines":[","],"id":30}],[{"start":{"row":22,"column":11},"end":{"row":23,"column":2},"action":"remove","lines":[""," "],"id":31},{"start":{"row":22,"column":11},"end":{"row":22,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":21,"column":10},"end":{"row":22,"column":4},"action":"remove","lines":[""," "],"id":32},{"start":{"row":21,"column":10},"end":{"row":21,"column":11},"action":"insert","lines":[" "]}],[{"start":{"row":20,"column":9},"end":{"row":21,"column":4},"action":"remove","lines":[""," "],"id":33},{"start":{"row":20,"column":9},"end":{"row":20,"column":10},"action":"insert","lines":[" "]}],[{"start":{"row":19,"column":17},"end":{"row":20,"column":4},"action":"remove","lines":[""," "],"id":34},{"start":{"row":19,"column":17},"end":{"row":19,"column":18},"action":"insert","lines":[" "]}],[{"start":{"row":18,"column":18},"end":{"row":19,"column":4},"action":"remove","lines":[""," "],"id":35},{"start":{"row":18,"column":18},"end":{"row":18,"column":19},"action":"insert","lines":[" "]}],[{"start":{"row":17,"column":15},"end":{"row":18,"column":4},"action":"remove","lines":[""," "],"id":36},{"start":{"row":17,"column":15},"end":{"row":17,"column":16},"action":"insert","lines":[" "]}],[{"start":{"row":16,"column":14},"end":{"row":17,"column":4},"action":"remove","lines":[""," "],"id":37},{"start":{"row":16,"column":14},"end":{"row":16,"column":15},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":15},"end":{"row":16,"column":4},"action":"remove","lines":[""," "],"id":38},{"start":{"row":15,"column":15},"end":{"row":15,"column":16},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":15},"end":{"row":15,"column":16},"action":"remove","lines":[" "],"id":39}],[{"start":{"row":15,"column":87},"end":{"row":15,"column":88},"action":"remove","lines":[" "],"id":40}],[{"start":{"row":15,"column":2},"end":{"row":15,"column":88},"action":"remove","lines":["\"keywords\": [\"memoize\", \"memoizer\", \"memoization\", \"javascript\", \"js\", \"lru\", \"cache\"]"],"id":41}],[{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"remove","lines":[" "],"id":42}],[{"start":{"row":14,"column":0},"end":{"row":15,"column":0},"action":"remove","lines":["",""],"id":43}],[{"start":{"row":13,"column":4},"end":{"row":14,"column":0},"action":"remove","lines":["",""],"id":44}],[{"start":{"row":13,"column":3},"end":{"row":13,"column":4},"action":"remove","lines":[","],"id":45}],[{"start":{"row":13,"column":3},"end":{"row":13,"column":4},"action":"insert","lines":[","],"id":48}],[{"start":{"row":13,"column":4},"end":{"row":14,"column":0},"action":"insert","lines":["",""],"id":49},{"start":{"row":14,"column":0},"end":{"row":14,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":14,"column":2},"end":{"row":15,"column":0},"action":"insert","lines":["",""],"id":50},{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"insert","lines":[" "]}],[{"start":{"row":15,"column":2},"end":{"row":15,"column":88},"action":"insert","lines":["\"keywords\": [\"memoize\", \"memoizer\", \"memoization\", \"javascript\", \"js\", \"lru\", \"cache\"]"],"id":51}],[{"start":{"row":10,"column":23},"end":{"row":10,"column":24},"action":"insert","lines":["."],"id":52}],[{"start":{"row":10,"column":24},"end":{"row":10,"column":25},"action":"insert","lines":["m"],"id":53}],[{"start":{"row":10,"column":25},"end":{"row":10,"column":26},"action":"insert","lines":["i"],"id":54}],[{"start":{"row":10,"column":26},"end":{"row":10,"column":27},"action":"insert","lines":["n"],"id":55}],[{"start":{"row":7,"column":17},"end":{"row":8,"column":3},"action":"insert","lines":[""," "],"id":56,"ignore":true},{"start":{"row":8,"column":18},"end":{"row":9,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":9,"column":62},"end":{"row":10,"column":1},"action":"insert","lines":[""," "]},{"start":{"row":10,"column":4},"end":{"row":10,"column":6},"action":"remove","lines":[" "]},{"start":{"row":11,"column":11},"end":{"row":12,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":12,"column":61},"end":{"row":12,"column":64},"action":"remove","lines":[" },"]},{"start":{"row":13,"column":2},"end":{"row":13,"column":4},"action":"insert","lines":["},"]},{"start":{"row":18,"column":0},"end":{"row":19,"column":0},"action":"remove","lines":[" ",""]},{"start":{"row":18,"column":15},"end":{"row":19,"column":4},"action":"insert","lines":[""," "]},{"start":{"row":19,"column":14},"end":{"row":20,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":20,"column":15},"end":{"row":21,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":21,"column":18},"end":{"row":22,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":22,"column":17},"end":{"row":23,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":23,"column":9},"end":{"row":24,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":24,"column":10},"end":{"row":25,"column":3},"action":"insert","lines":[""," "]},{"start":{"row":25,"column":11},"end":{"row":25,"column":12},"action":"remove","lines":["]"]},{"start":{"row":25,"column":11},"end":{"row":29,"column":3},"action":"insert","lines":[""," ],"," \"dependencies\": {"," \"pseudomap\": \"^1.0.2\""," }"]}],[{"start":{"row":27,"column":19},"end":{"row":29,"column":2},"action":"remove","lines":[""," \"pseudomap\": \"^1.0.2\""," "],"id":57,"ignore":true}],[{"start":{"row":27,"column":20},"end":{"row":30,"column":3},"action":"insert","lines":[","," \"devDependencies\": {"," \"gulp\": \"^3.9.0\""," }"],"id":58,"ignore":true}],[{"start":{"row":29,"column":20},"end":{"row":30,"column":25},"action":"insert","lines":[","," \"gulp-util\": \"^3.0.7\""],"id":59,"ignore":true}],[{"start":{"row":30,"column":25},"end":{"row":31,"column":35},"action":"insert","lines":[","," \"vinyl-source-stream\": \"^1.1.0\""],"id":60,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"vinyl-buffer\": \"^1.0.0\",",""],"id":61,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"run-sequence\": \"^1.1.5\",",""],"id":62,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"browserify\": \"^13.0.0\",",""],"id":63,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"gulp-uglify\": \"^1.5.1\",",""],"id":64,"ignore":true}],[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":[" \"gulp-streamify\": \"^1.0.2\",",""],"id":65,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babelify\": \"^7.2.0\",",""],"id":66,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":67,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"remove","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":68,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"remove","lines":[" \"babelify\": \"^7.2.0\",",""],"id":69,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babelify\": \"^7.2.0\",",""],"id":70,"ignore":true}],[{"start":{"row":29,"column":0},"end":{"row":30,"column":0},"action":"insert","lines":[" \"babel-preset-es2015\": \"^6.3.13\",",""],"id":71,"ignore":true}],[{"start":{"row":32,"column":0},"end":{"row":33,"column":0},"action":"insert","lines":[" \"browserify-umdify\": \"^1.0.3\",",""],"id":72,"ignore":true}],[{"start":{"row":32,"column":0},"end":{"row":33,"column":0},"action":"remove","lines":[" \"browserify-umdify\": \"^1.0.3\",",""],"id":73,"ignore":true}],[{"start":{"row":37,"column":0},"end":{"row":38,"column":0},"action":"insert","lines":[" \"umdify\": \"^0.1.0\",",""],"id":74,"ignore":true}],[{"start":{"row":39,"column":35},"end":{"row":40,"column":28},"action":"insert","lines":[","," \"webpack\": \"^2.0.6-beta\""],"id":75,"ignore":true}],[{"start":{"row":39,"column":35},"end":{"row":40,"column":28},"action":"remove","lines":[","," \"webpack\": \"^2.0.6-beta\""],"id":76,"ignore":true}],[{"start":{"row":20,"column":4},"end":{"row":20,"column":15},"action":"remove","lines":["\"memoizer\","],"id":77},{"start":{"row":20,"column":4},"end":{"row":20,"column":15},"action":"insert","lines":["\"memoizer\","]}],[{"start":{"row":21,"column":18},"end":{"row":22,"column":0},"action":"insert","lines":["",""],"id":78},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":22,"column":4},"end":{"row":22,"column":15},"action":"insert","lines":["\"memoizer\","],"id":79}],[{"start":{"row":22,"column":12},"end":{"row":22,"column":13},"action":"remove","lines":["r"],"id":80}],[{"start":{"row":22,"column":12},"end":{"row":22,"column":13},"action":"insert","lines":["d"],"id":81}],[{"start":{"row":14,"column":11},"end":{"row":14,"column":12},"action":"insert","lines":["s"],"id":82}],[{"start":{"row":14,"column":12},"end":{"row":14,"column":13},"action":"insert","lines":["r"],"id":83}],[{"start":{"row":14,"column":13},"end":{"row":14,"column":14},"action":"insert","lines":["c"],"id":84}],[{"start":{"row":14,"column":14},"end":{"row":14,"column":15},"action":"insert","lines":["/"],"id":85}],[{"start":{"row":14,"column":27},"end":{"row":14,"column":31},"action":"remove","lines":[".min"],"id":86}],[{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"remove","lines":["0"],"id":87,"ignore":true},{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"insert","lines":["1"]}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"remove","lines":["m"],"id":88}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["M"],"id":89}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"remove","lines":["M"],"id":90}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["m"],"id":91}],[{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"remove","lines":["1"],"id":92,"ignore":true},{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"insert","lines":["2"]}],[{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"remove","lines":["2"],"id":93,"ignore":true},{"start":{"row":2,"column":18},"end":{"row":2,"column":19},"action":"insert","lines":["3"]}],[{"start":{"row":3,"column":68},"end":{"row":3,"column":79},"action":"remove","lines":["memoization"],"id":94}],[{"start":{"row":3,"column":67},"end":{"row":3,"column":68},"action":"remove","lines":[" "],"id":95}],[{"start":{"row":3,"column":71},"end":{"row":3,"column":72},"action":"insert","lines":[" "],"id":96}],[{"start":{"row":3,"column":72},"end":{"row":3,"column":73},"action":"insert","lines":["t"],"id":97}],[{"start":{"row":3,"column":73},"end":{"row":3,"column":74},"action":"insert","lines":["o"],"id":98}],[{"start":{"row":3,"column":74},"end":{"row":3,"column":75},"action":"insert","lines":[" "],"id":99}],[{"start":{"row":3,"column":75},"end":{"row":3,"column":76},"action":"insert","lines":["m"],"id":100}],[{"start":{"row":3,"column":76},"end":{"row":3,"column":77},"action":"insert","lines":["e"],"id":101}],[{"start":{"row":3,"column":77},"end":{"row":3,"column":78},"action":"insert","lines":["m"],"id":102}],[{"start":{"row":3,"column":78},"end":{"row":3,"column":79},"action":"insert","lines":["o"],"id":103}],[{"start":{"row":3,"column":79},"end":{"row":3,"column":80},"action":"insert","lines":["i"],"id":104}],[{"start":{"row":3,"column":80},"end":{"row":3,"column":81},"action":"insert","lines":["z"],"id":105}],[{"start":{"row":3,"column":81},"end":{"row":3,"column":82},"action":"insert","lines":["e"],"id":106}],[{"start":{"row":3,"column":82},"end":{"row":3,"column":83},"action":"insert","lines":[" "],"id":107}],[{"start":{"row":3,"column":83},"end":{"row":3,"column":84},"action":"insert","lines":["f"],"id":108}],[{"start":{"row":3,"column":84},"end":{"row":3,"column":85},"action":"insert","lines":["u"],"id":109}],[{"start":{"row":3,"column":85},"end":{"row":3,"column":86},"action":"insert","lines":["n"],"id":110}],[{"start":{"row":3,"column":86},"end":{"row":3,"column":87},"action":"insert","lines":["c"],"id":111}],[{"start":{"row":3,"column":87},"end":{"row":3,"column":88},"action":"insert","lines":["t"],"id":112}],[{"start":{"row":3,"column":88},"end":{"row":3,"column":89},"action":"insert","lines":["i"],"id":113}],[{"start":{"row":3,"column":89},"end":{"row":3,"column":90},"action":"insert","lines":["o"],"id":114}],[{"start":{"row":3,"column":90},"end":{"row":3,"column":91},"action":"insert","lines":["n"],"id":115}],[{"start":{"row":3,"column":91},"end":{"row":3,"column":92},"action":"insert","lines":["s"],"id":116}],[{"start":{"row":3,"column":75},"end":{"row":3,"column":82},"action":"remove","lines":["memoize"],"id":117}],[{"start":{"row":3,"column":68},"end":{"row":3,"column":75},"action":"insert","lines":["memoize"],"id":118}],[{"start":{"row":3,"column":75},"end":{"row":3,"column":76},"action":"insert","lines":[" "],"id":119}],[{"start":{"row":3,"column":80},"end":{"row":3,"column":93},"action":"remove","lines":["to functions"],"id":120}],[{"start":{"row":3,"column":79},"end":{"row":3,"column":80},"action":"remove","lines":[" "],"id":121}],[{"start":{"row":3,"column":68},"end":{"row":3,"column":75},"action":"remove","lines":["memoize"],"id":122},{"start":{"row":3,"column":68},"end":{"row":3,"column":69},"action":"insert","lines":["m"]}],[{"start":{"row":3,"column":69},"end":{"row":3,"column":70},"action":"insert","lines":["e"],"id":123}],[{"start":{"row":3,"column":70},"end":{"row":3,"column":71},"action":"insert","lines":["m"],"id":124}],[{"start":{"row":3,"column":71},"end":{"row":3,"column":72},"action":"insert","lines":["o"],"id":125}],[{"start":{"row":3,"column":72},"end":{"row":3,"column":73},"action":"insert","lines":["i"],"id":126}],[{"start":{"row":3,"column":73},"end":{"row":3,"column":74},"action":"insert","lines":["z"],"id":127}],[{"start":{"row":3,"column":74},"end":{"row":3,"column":75},"action":"insert","lines":["a"],"id":128}],[{"start":{"row":3,"column":75},"end":{"row":3,"column":76},"action":"insert","lines":["t"],"id":129}],[{"start":{"row":3,"column":76},"end":{"row":3,"column":77},"action":"insert","lines":["i"],"id":130}],[{"start":{"row":3,"column":77},"end":{"row":3,"column":78},"action":"insert","lines":["o"],"id":131}],[{"start":{"row":3,"column":78},"end":{"row":3,"column":79},"action":"insert","lines":["n"],"id":132}],[{"start":{"row":3,"column":83},"end":{"row":3,"column":84},"action":"insert","lines":[" "],"id":133}],[{"start":{"row":3,"column":84},"end":{"row":3,"column":85},"action":"insert","lines":["f"],"id":134}],[{"start":{"row":3,"column":85},"end":{"row":3,"column":86},"action":"insert","lines":["o"],"id":135}],[{"start":{"row":3,"column":86},"end":{"row":3,"column":87},"action":"insert","lines":["r"],"id":136}],[{"start":{"row":3,"column":87},"end":{"row":3,"column":88},"action":"insert","lines":[" "],"id":137}],[{"start":{"row":3,"column":88},"end":{"row":3,"column":89},"action":"insert","lines":["m"],"id":138}],[{"start":{"row":3,"column":89},"end":{"row":3,"column":90},"action":"insert","lines":["e"],"id":139}],[{"start":{"row":3,"column":90},"end":{"row":3,"column":91},"action":"insert","lines":["m"],"id":140}],[{"start":{"row":3,"column":91},"end":{"row":3,"column":92},"action":"insert","lines":["o"],"id":141}],[{"start":{"row":3,"column":92},"end":{"row":3,"column":93},"action":"insert","lines":["i"],"id":142}],[{"start":{"row":3,"column":93},"end":{"row":3,"column":94},"action":"insert","lines":["z"],"id":143}],[{"start":{"row":3,"column":94},"end":{"row":3,"column":95},"action":"insert","lines":["e"],"id":144}],[{"start":{"row":3,"column":95},"end":{"row":3,"column":96},"action":"insert","lines":["'"],"id":145}],[{"start":{"row":3,"column":96},"end":{"row":3,"column":97},"action":"insert","lines":["i"],"id":146}],[{"start":{"row":3,"column":97},"end":{"row":3,"column":98},"action":"insert","lines":["n"],"id":147}],[{"start":{"row":3,"column":98},"end":{"row":3,"column":99},"action":"insert","lines":["g"],"id":148}],[{"start":{"row":3,"column":99},"end":{"row":3,"column":100},"action":"insert","lines":[" "],"id":149}],[{"start":{"row":3,"column":100},"end":{"row":3,"column":101},"action":"insert","lines":["f"],"id":150}],[{"start":{"row":3,"column":101},"end":{"row":3,"column":102},"action":"insert","lines":["u"],"id":151}],[{"start":{"row":3,"column":102},"end":{"row":3,"column":103},"action":"insert","lines":["n"],"id":152}],[{"start":{"row":3,"column":103},"end":{"row":3,"column":104},"action":"insert","lines":["c"],"id":153}],[{"start":{"row":3,"column":104},"end":{"row":3,"column":105},"action":"insert","lines":["t"],"id":154}],[{"start":{"row":3,"column":105},"end":{"row":3,"column":106},"action":"insert","lines":["i"],"id":155}],[{"start":{"row":3,"column":106},"end":{"row":3,"column":107},"action":"insert","lines":["o"],"id":156}],[{"start":{"row":3,"column":107},"end":{"row":3,"column":108},"action":"insert","lines":["n"],"id":157}],[{"start":{"row":3,"column":108},"end":{"row":3,"column":109},"action":"insert","lines":["s"],"id":158}],[{"start":{"row":3,"column":84},"end":{"row":3,"column":87},"action":"remove","lines":["for"],"id":159},{"start":{"row":3,"column":84},"end":{"row":3,"column":85},"action":"insert","lines":["t"]}],[{"start":{"row":3,"column":85},"end":{"row":3,"column":86},"action":"insert","lines":["o"],"id":160}],[{"start":{"row":3,"column":86},"end":{"row":3,"column":87},"action":"insert","lines":[" "],"id":161}],[{"start":{"row":3,"column":87},"end":{"row":3,"column":88},"action":"remove","lines":[" "],"id":162}],[{"start":{"row":3,"column":63},"end":{"row":3,"column":68},"action":"remove","lines":["(JS) "],"id":163}],[{"start":{"row":3,"column":89},"end":{"row":3,"column":93},"action":"remove","lines":["'ing"],"id":164},{"start":{"row":3,"column":89},"end":{"row":3,"column":90},"action":"insert","lines":[" "]}],[{"start":{"row":3,"column":90},"end":{"row":3,"column":91},"action":"insert","lines":["J"],"id":165}],[{"start":{"row":3,"column":91},"end":{"row":3,"column":92},"action":"insert","lines":["S"],"id":166}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":3,"column":63},"end":{"row":3,"column":74},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1454358009407,"hash":"c57979d7e44f0fb8ba762c692052088da2dae130"} |
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"maporsimilar.js","tooltip":"/src/maporsimilar.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":0,"column":0},"end":{"row":59,"column":1},"action":"insert","lines":["function MapOrSimilar() {"," if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"," "," function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "," "," return this;"," }"," ","","}"],"id":1}],[{"start":{"row":13,"column":8},"end":{"row":53,"column":30},"action":"remove","lines":["this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "],"id":2}],[{"start":{"row":13,"column":0},"end":{"row":14,"column":0},"action":"remove","lines":[" ",""],"id":3}],[{"start":{"row":13,"column":0},"end":{"row":14,"column":0},"action":"remove","lines":[" ",""],"id":4}],[{"start":{"row":16,"column":0},"end":{"row":56,"column":30},"action":"insert","lines":["this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "],"id":5}],[{"start":{"row":17,"column":0},"end":{"row":17,"column":4},"action":"remove","lines":[" "],"id":6},{"start":{"row":18,"column":0},"end":{"row":18,"column":4},"action":"remove","lines":[" "]},{"start":{"row":19,"column":0},"end":{"row":19,"column":4},"action":"remove","lines":[" "]},{"start":{"row":20,"column":0},"end":{"row":20,"column":4},"action":"remove","lines":[" "]},{"start":{"row":21,"column":0},"end":{"row":21,"column":4},"action":"remove","lines":[" "]},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"remove","lines":[" "]},{"start":{"row":23,"column":0},"end":{"row":23,"column":4},"action":"remove","lines":[" "]},{"start":{"row":24,"column":0},"end":{"row":24,"column":4},"action":"remove","lines":[" "]},{"start":{"row":25,"column":0},"end":{"row":25,"column":4},"action":"remove","lines":[" "]},{"start":{"row":26,"column":0},"end":{"row":26,"column":4},"action":"remove","lines":[" "]},{"start":{"row":27,"column":0},"end":{"row":27,"column":4},"action":"remove","lines":[" "]},{"start":{"row":28,"column":0},"end":{"row":28,"column":4},"action":"remove","lines":[" "]},{"start":{"row":29,"column":0},"end":{"row":29,"column":4},"action":"remove","lines":[" "]},{"start":{"row":30,"column":0},"end":{"row":30,"column":4},"action":"remove","lines":[" "]},{"start":{"row":31,"column":0},"end":{"row":31,"column":4},"action":"remove","lines":[" "]},{"start":{"row":32,"column":0},"end":{"row":32,"column":4},"action":"remove","lines":[" "]},{"start":{"row":33,"column":0},"end":{"row":33,"column":4},"action":"remove","lines":[" "]},{"start":{"row":34,"column":0},"end":{"row":34,"column":4},"action":"remove","lines":[" "]},{"start":{"row":35,"column":0},"end":{"row":35,"column":4},"action":"remove","lines":[" "]},{"start":{"row":36,"column":0},"end":{"row":36,"column":4},"action":"remove","lines":[" "]},{"start":{"row":37,"column":0},"end":{"row":37,"column":4},"action":"remove","lines":[" "]},{"start":{"row":38,"column":0},"end":{"row":38,"column":4},"action":"remove","lines":[" "]},{"start":{"row":39,"column":0},"end":{"row":39,"column":4},"action":"remove","lines":[" "]},{"start":{"row":40,"column":0},"end":{"row":40,"column":4},"action":"remove","lines":[" "]},{"start":{"row":41,"column":0},"end":{"row":41,"column":4},"action":"remove","lines":[" "]},{"start":{"row":42,"column":0},"end":{"row":42,"column":4},"action":"remove","lines":[" "]},{"start":{"row":43,"column":0},"end":{"row":43,"column":4},"action":"remove","lines":[" "]},{"start":{"row":44,"column":0},"end":{"row":44,"column":4},"action":"remove","lines":[" "]},{"start":{"row":45,"column":0},"end":{"row":45,"column":4},"action":"remove","lines":[" "]},{"start":{"row":46,"column":0},"end":{"row":46,"column":4},"action":"remove","lines":[" "]},{"start":{"row":47,"column":0},"end":{"row":47,"column":4},"action":"remove","lines":[" "]},{"start":{"row":48,"column":0},"end":{"row":48,"column":4},"action":"remove","lines":[" "]},{"start":{"row":49,"column":0},"end":{"row":49,"column":4},"action":"remove","lines":[" "]},{"start":{"row":50,"column":0},"end":{"row":50,"column":4},"action":"remove","lines":[" "]},{"start":{"row":51,"column":0},"end":{"row":51,"column":4},"action":"remove","lines":[" "]},{"start":{"row":52,"column":0},"end":{"row":52,"column":4},"action":"remove","lines":[" "]},{"start":{"row":53,"column":0},"end":{"row":53,"column":4},"action":"remove","lines":[" "]},{"start":{"row":54,"column":0},"end":{"row":54,"column":4},"action":"remove","lines":[" "]},{"start":{"row":55,"column":0},"end":{"row":55,"column":4},"action":"remove","lines":[" "]},{"start":{"row":56,"column":0},"end":{"row":56,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":16,"column":0},"end":{"row":16,"column":4},"action":"insert","lines":[" "],"id":7}],[{"start":{"row":16,"column":4},"end":{"row":16,"column":8},"action":"remove","lines":["this"],"id":8},{"start":{"row":16,"column":4},"end":{"row":16,"column":11},"action":"insert","lines":["Similar"]}],[{"start":{"row":16,"column":12},"end":{"row":16,"column":13},"action":"insert","lines":["p"],"id":9}],[{"start":{"row":16,"column":13},"end":{"row":16,"column":14},"action":"insert","lines":["r"],"id":10}],[{"start":{"row":16,"column":14},"end":{"row":16,"column":15},"action":"insert","lines":["o"],"id":11}],[{"start":{"row":16,"column":15},"end":{"row":16,"column":16},"action":"insert","lines":["t"],"id":12}],[{"start":{"row":16,"column":16},"end":{"row":16,"column":17},"action":"insert","lines":["o"],"id":13}],[{"start":{"row":16,"column":17},"end":{"row":16,"column":18},"action":"insert","lines":["t"],"id":14}],[{"start":{"row":16,"column":18},"end":{"row":16,"column":19},"action":"insert","lines":["y"],"id":15}],[{"start":{"row":16,"column":19},"end":{"row":16,"column":20},"action":"insert","lines":["p"],"id":16}],[{"start":{"row":16,"column":20},"end":{"row":16,"column":21},"action":"insert","lines":["e"],"id":17}],[{"start":{"row":16,"column":21},"end":{"row":16,"column":22},"action":"insert","lines":["."],"id":18}],[{"start":{"row":34,"column":4},"end":{"row":34,"column":8},"action":"remove","lines":["this"],"id":19},{"start":{"row":34,"column":4},"end":{"row":34,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":40,"column":4},"end":{"row":40,"column":8},"action":"remove","lines":["this"],"id":20},{"start":{"row":40,"column":4},"end":{"row":40,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":56,"column":4},"end":{"row":56,"column":8},"action":"remove","lines":["this"],"id":21},{"start":{"row":56,"column":4},"end":{"row":56,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":56,"column":28},"end":{"row":56,"column":32},"action":"remove","lines":["this"],"id":22},{"start":{"row":56,"column":28},"end":{"row":56,"column":45},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":8,"column":0},"end":{"row":56,"column":52},"action":"remove","lines":[" function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;"," }"," "," Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," Similar.prototype.has = Similar.prototype.get; "],"id":23}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":[" ",""],"id":24}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":25}],[{"start":{"row":7,"column":1},"end":{"row":8,"column":0},"action":"insert","lines":["",""],"id":26}],[{"start":{"row":8,"column":0},"end":{"row":9,"column":0},"action":"insert","lines":["",""],"id":27}],[{"start":{"row":9,"column":0},"end":{"row":57,"column":52},"action":"insert","lines":[" function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;"," }"," "," Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," Similar.prototype.has = Similar.prototype.get; "],"id":28}],[{"start":{"row":9,"column":0},"end":{"row":9,"column":4},"action":"remove","lines":[" "],"id":30},{"start":{"row":10,"column":0},"end":{"row":10,"column":4},"action":"remove","lines":[" "]},{"start":{"row":11,"column":0},"end":{"row":11,"column":4},"action":"remove","lines":[" "]},{"start":{"row":12,"column":0},"end":{"row":12,"column":4},"action":"remove","lines":[" "]},{"start":{"row":13,"column":0},"end":{"row":13,"column":4},"action":"remove","lines":[" "]},{"start":{"row":14,"column":0},"end":{"row":14,"column":4},"action":"remove","lines":[" "]},{"start":{"row":15,"column":0},"end":{"row":15,"column":4},"action":"remove","lines":[" "]},{"start":{"row":16,"column":0},"end":{"row":16,"column":4},"action":"remove","lines":[" "]},{"start":{"row":17,"column":0},"end":{"row":17,"column":4},"action":"remove","lines":[" "]},{"start":{"row":18,"column":0},"end":{"row":18,"column":4},"action":"remove","lines":[" "]},{"start":{"row":19,"column":0},"end":{"row":19,"column":4},"action":"remove","lines":[" "]},{"start":{"row":20,"column":0},"end":{"row":20,"column":4},"action":"remove","lines":[" "]},{"start":{"row":21,"column":0},"end":{"row":21,"column":4},"action":"remove","lines":[" "]},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"remove","lines":[" "]},{"start":{"row":23,"column":0},"end":{"row":23,"column":4},"action":"remove","lines":[" "]},{"start":{"row":24,"column":0},"end":{"row":24,"column":4},"action":"remove","lines":[" "]},{"start":{"row":25,"column":0},"end":{"row":25,"column":4},"action":"remove","lines":[" "]},{"start":{"row":26,"column":0},"end":{"row":26,"column":4},"action":"remove","lines":[" "]},{"start":{"row":27,"column":0},"end":{"row":27,"column":4},"action":"remove","lines":[" "]},{"start":{"row":28,"column":0},"end":{"row":28,"column":4},"action":"remove","lines":[" "]},{"start":{"row":29,"column":0},"end":{"row":29,"column":4},"action":"remove","lines":[" "]},{"start":{"row":30,"column":0},"end":{"row":30,"column":4},"action":"remove","lines":[" "]},{"start":{"row":31,"column":0},"end":{"row":31,"column":4},"action":"remove","lines":[" "]},{"start":{"row":32,"column":0},"end":{"row":32,"column":4},"action":"remove","lines":[" "]},{"start":{"row":33,"column":0},"end":{"row":33,"column":4},"action":"remove","lines":[" "]},{"start":{"row":34,"column":0},"end":{"row":34,"column":4},"action":"remove","lines":[" "]},{"start":{"row":35,"column":0},"end":{"row":35,"column":4},"action":"remove","lines":[" "]},{"start":{"row":36,"column":0},"end":{"row":36,"column":4},"action":"remove","lines":[" "]},{"start":{"row":37,"column":0},"end":{"row":37,"column":4},"action":"remove","lines":[" "]},{"start":{"row":38,"column":0},"end":{"row":38,"column":4},"action":"remove","lines":[" "]},{"start":{"row":39,"column":0},"end":{"row":39,"column":4},"action":"remove","lines":[" "]},{"start":{"row":40,"column":0},"end":{"row":40,"column":4},"action":"remove","lines":[" "]},{"start":{"row":41,"column":0},"end":{"row":41,"column":4},"action":"remove","lines":[" "]},{"start":{"row":42,"column":0},"end":{"row":42,"column":4},"action":"remove","lines":[" "]},{"start":{"row":43,"column":0},"end":{"row":43,"column":4},"action":"remove","lines":[" "]},{"start":{"row":44,"column":0},"end":{"row":44,"column":4},"action":"remove","lines":[" "]},{"start":{"row":45,"column":0},"end":{"row":45,"column":4},"action":"remove","lines":[" "]},{"start":{"row":46,"column":0},"end":{"row":46,"column":4},"action":"remove","lines":[" "]},{"start":{"row":47,"column":0},"end":{"row":47,"column":4},"action":"remove","lines":[" "]},{"start":{"row":48,"column":0},"end":{"row":48,"column":4},"action":"remove","lines":[" "]},{"start":{"row":49,"column":0},"end":{"row":49,"column":4},"action":"remove","lines":[" "]},{"start":{"row":50,"column":0},"end":{"row":50,"column":4},"action":"remove","lines":[" "]},{"start":{"row":51,"column":0},"end":{"row":51,"column":4},"action":"remove","lines":[" "]},{"start":{"row":52,"column":0},"end":{"row":52,"column":4},"action":"remove","lines":[" "]},{"start":{"row":53,"column":0},"end":{"row":53,"column":4},"action":"remove","lines":[" "]},{"start":{"row":54,"column":0},"end":{"row":54,"column":4},"action":"remove","lines":[" "]},{"start":{"row":55,"column":0},"end":{"row":55,"column":4},"action":"remove","lines":[" "]},{"start":{"row":56,"column":0},"end":{"row":56,"column":4},"action":"remove","lines":[" "]},{"start":{"row":57,"column":0},"end":{"row":57,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"insert","lines":["m"],"id":31}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"insert","lines":["o"],"id":32}],[{"start":{"row":0,"column":2},"end":{"row":0,"column":3},"action":"insert","lines":["d"],"id":33}],[{"start":{"row":0,"column":3},"end":{"row":0,"column":4},"action":"insert","lines":["u"],"id":34}],[{"start":{"row":0,"column":4},"end":{"row":0,"column":5},"action":"insert","lines":["l"],"id":35}],[{"start":{"row":0,"column":5},"end":{"row":0,"column":6},"action":"insert","lines":["e"],"id":36}],[{"start":{"row":0,"column":6},"end":{"row":0,"column":7},"action":"insert","lines":["."],"id":37}],[{"start":{"row":0,"column":7},"end":{"row":0,"column":8},"action":"insert","lines":["e"],"id":38}],[{"start":{"row":0,"column":8},"end":{"row":0,"column":9},"action":"insert","lines":["x"],"id":39}],[{"start":{"row":0,"column":9},"end":{"row":0,"column":10},"action":"insert","lines":["p"],"id":40}],[{"start":{"row":0,"column":10},"end":{"row":0,"column":11},"action":"insert","lines":["o"],"id":41}],[{"start":{"row":0,"column":11},"end":{"row":0,"column":12},"action":"insert","lines":["r"],"id":42}],[{"start":{"row":0,"column":12},"end":{"row":0,"column":13},"action":"insert","lines":["t"],"id":43}],[{"start":{"row":0,"column":13},"end":{"row":0,"column":14},"action":"insert","lines":["s"],"id":44}],[{"start":{"row":0,"column":14},"end":{"row":0,"column":15},"action":"insert","lines":[" "],"id":45}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":15},"action":"remove","lines":["module.exports "],"id":46}],[{"start":{"row":1,"column":0},"end":{"row":6,"column":5},"action":"remove","lines":[" if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"],"id":47}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"insert","lines":["",""],"id":48}],[{"start":{"row":0,"column":0},"end":{"row":5,"column":5},"action":"insert","lines":[" if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"],"id":49}],[{"start":{"row":5,"column":5},"end":{"row":6,"column":0},"action":"insert","lines":["",""],"id":50},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":4},"action":"remove","lines":[" "],"id":51},{"start":{"row":1,"column":0},"end":{"row":1,"column":4},"action":"remove","lines":[" "]},{"start":{"row":2,"column":0},"end":{"row":2,"column":4},"action":"remove","lines":[" "]},{"start":{"row":3,"column":0},"end":{"row":3,"column":4},"action":"remove","lines":[" "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"remove","lines":[" "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"remove","lines":[" "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":1,"column":0},"end":{"row":1,"column":21},"action":"remove","lines":[" return new Map();"],"id":52}],[{"start":{"row":1,"column":0},"end":{"row":1,"column":4},"action":"insert","lines":[" "],"id":53}],[{"start":{"row":1,"column":4},"end":{"row":1,"column":5},"action":"insert","lines":["m"],"id":54}],[{"start":{"row":1,"column":5},"end":{"row":1,"column":6},"action":"insert","lines":["o"],"id":55}],[{"start":{"row":1,"column":6},"end":{"row":1,"column":7},"action":"insert","lines":["d"],"id":56}],[{"start":{"row":1,"column":7},"end":{"row":1,"column":8},"action":"insert","lines":["u"],"id":57}],[{"start":{"row":1,"column":8},"end":{"row":1,"column":9},"action":"insert","lines":["l"],"id":58}],[{"start":{"row":1,"column":9},"end":{"row":1,"column":10},"action":"insert","lines":["e"],"id":59}],[{"start":{"row":1,"column":10},"end":{"row":1,"column":11},"action":"insert","lines":["."],"id":60}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["e"],"id":61}],[{"start":{"row":1,"column":12},"end":{"row":1,"column":13},"action":"insert","lines":["x"],"id":62}],[{"start":{"row":1,"column":13},"end":{"row":1,"column":14},"action":"insert","lines":["p"],"id":63}],[{"start":{"row":1,"column":14},"end":{"row":1,"column":15},"action":"insert","lines":["o"],"id":64}],[{"start":{"row":1,"column":15},"end":{"row":1,"column":16},"action":"insert","lines":["r"],"id":65}],[{"start":{"row":1,"column":16},"end":{"row":1,"column":17},"action":"insert","lines":["t"],"id":66}],[{"start":{"row":1,"column":17},"end":{"row":1,"column":18},"action":"insert","lines":["s"],"id":67}],[{"start":{"row":1,"column":18},"end":{"row":1,"column":19},"action":"insert","lines":[" "],"id":68}],[{"start":{"row":1,"column":19},"end":{"row":1,"column":20},"action":"insert","lines":["="],"id":69}],[{"start":{"row":1,"column":20},"end":{"row":1,"column":21},"action":"insert","lines":[" "],"id":70}],[{"start":{"row":1,"column":21},"end":{"row":1,"column":22},"action":"insert","lines":["M"],"id":71}],[{"start":{"row":1,"column":22},"end":{"row":1,"column":23},"action":"insert","lines":["a"],"id":72}],[{"start":{"row":1,"column":23},"end":{"row":1,"column":24},"action":"insert","lines":["p"],"id":73}],[{"start":{"row":1,"column":24},"end":{"row":1,"column":25},"action":"insert","lines":[";"],"id":74}],[{"start":{"row":4,"column":4},"end":{"row":4,"column":25},"action":"remove","lines":["return new Similar();"],"id":75},{"start":{"row":4,"column":4},"end":{"row":4,"column":25},"action":"insert","lines":["module.exports = Map;"]}],[{"start":{"row":4,"column":21},"end":{"row":4,"column":24},"action":"remove","lines":["Map"],"id":76},{"start":{"row":4,"column":21},"end":{"row":4,"column":28},"action":"insert","lines":["Similar"]}],[{"start":{"row":7,"column":0},"end":{"row":9,"column":1},"action":"remove","lines":["function MapOrSimilar() {","","}"],"id":77}],[{"start":{"row":6,"column":0},"end":{"row":7,"column":0},"action":"remove","lines":["",""],"id":78}],[{"start":{"row":5,"column":1},"end":{"row":6,"column":0},"action":"remove","lines":["",""],"id":79}],[{"start":{"row":7,"column":0},"end":{"row":7,"column":14},"action":"insert","lines":["module.exports"],"id":80}],[{"start":{"row":7,"column":14},"end":{"row":7,"column":15},"action":"insert","lines":[" "],"id":81}],[{"start":{"row":7,"column":15},"end":{"row":7,"column":16},"action":"insert","lines":["="],"id":82}],[{"start":{"row":7,"column":16},"end":{"row":7,"column":17},"action":"insert","lines":[" "],"id":83}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"insert","lines":["",""],"id":84}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"insert","lines":["/"],"id":85}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"insert","lines":["*"],"id":86}],[{"start":{"row":7,"column":0},"end":{"row":7,"column":1},"action":"insert","lines":["*"],"id":87}],[{"start":{"row":7,"column":1},"end":{"row":7,"column":2},"action":"insert","lines":["/"],"id":88}],[{"start":{"row":8,"column":0},"end":{"row":8,"column":17},"action":"remove","lines":["module.exports = "],"id":89}],[{"start":{"row":7,"column":2},"end":{"row":8,"column":0},"action":"insert","lines":["",""],"id":90}],[{"start":{"row":57,"column":48},"end":{"row":58,"column":0},"action":"insert","lines":["",""],"id":91}],[{"start":{"row":58,"column":0},"end":{"row":59,"column":0},"action":"insert","lines":["",""],"id":92}],[{"start":{"row":59,"column":0},"end":{"row":59,"column":17},"action":"insert","lines":["module.exports = "],"id":93}],[{"start":{"row":59,"column":17},"end":{"row":59,"column":24},"action":"insert","lines":["Similar"],"id":94}],[{"start":{"row":59,"column":24},"end":{"row":59,"column":25},"action":"insert","lines":[";"],"id":95}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"remove","lines":["*"],"id":96}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"remove","lines":["/"],"id":97}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"remove","lines":["",""],"id":98}],[{"start":{"row":6,"column":1},"end":{"row":6,"column":2},"action":"remove","lines":["/"],"id":99}],[{"start":{"row":6,"column":0},"end":{"row":6,"column":1},"action":"remove","lines":["*"],"id":100}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":101}],[{"start":{"row":0,"column":0},"end":{"row":57,"column":25},"action":"remove","lines":["if (typeof Map === 'function') {"," module.exports = Map;","}","else {"," module.exports = Similar;","}","","function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;","}","","Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;","};","","Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;","};","","Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;","};","","Similar.prototype.has = Similar.prototype.get; ","","module.exports = Similar;"],"id":102},{"start":{"row":0,"column":0},"end":{"row":55,"column":48},"action":"insert","lines":["if (typeof Map === 'function') {"," module.exports = Map;","}","else {"," module.exports = Similar;","}","","function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;","}","","Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;","};","","Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;","};","","Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;","};","","Similar.prototype.has = Similar.prototype.get; "]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":8,"column":19},"end":{"row":8,"column":19},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1454312194682,"hash":"783a2853be60ab04cf24a81894df8a6ef36a7753"} | ||
{"filter":false,"title":"maporsimilar.js","tooltip":"/src/maporsimilar.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":0,"column":0},"end":{"row":59,"column":1},"action":"insert","lines":["function MapOrSimilar() {"," if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"," "," function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "," "," return this;"," }"," ","","}"],"id":1}],[{"start":{"row":13,"column":8},"end":{"row":53,"column":30},"action":"remove","lines":["this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "],"id":2}],[{"start":{"row":13,"column":0},"end":{"row":14,"column":0},"action":"remove","lines":[" ",""],"id":3}],[{"start":{"row":13,"column":0},"end":{"row":14,"column":0},"action":"remove","lines":[" ",""],"id":4}],[{"start":{"row":16,"column":0},"end":{"row":56,"column":30},"action":"insert","lines":["this.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," this.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," this.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," this.has = this.get; "],"id":5}],[{"start":{"row":17,"column":0},"end":{"row":17,"column":4},"action":"remove","lines":[" "],"id":6},{"start":{"row":18,"column":0},"end":{"row":18,"column":4},"action":"remove","lines":[" "]},{"start":{"row":19,"column":0},"end":{"row":19,"column":4},"action":"remove","lines":[" "]},{"start":{"row":20,"column":0},"end":{"row":20,"column":4},"action":"remove","lines":[" "]},{"start":{"row":21,"column":0},"end":{"row":21,"column":4},"action":"remove","lines":[" "]},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"remove","lines":[" "]},{"start":{"row":23,"column":0},"end":{"row":23,"column":4},"action":"remove","lines":[" "]},{"start":{"row":24,"column":0},"end":{"row":24,"column":4},"action":"remove","lines":[" "]},{"start":{"row":25,"column":0},"end":{"row":25,"column":4},"action":"remove","lines":[" "]},{"start":{"row":26,"column":0},"end":{"row":26,"column":4},"action":"remove","lines":[" "]},{"start":{"row":27,"column":0},"end":{"row":27,"column":4},"action":"remove","lines":[" "]},{"start":{"row":28,"column":0},"end":{"row":28,"column":4},"action":"remove","lines":[" "]},{"start":{"row":29,"column":0},"end":{"row":29,"column":4},"action":"remove","lines":[" "]},{"start":{"row":30,"column":0},"end":{"row":30,"column":4},"action":"remove","lines":[" "]},{"start":{"row":31,"column":0},"end":{"row":31,"column":4},"action":"remove","lines":[" "]},{"start":{"row":32,"column":0},"end":{"row":32,"column":4},"action":"remove","lines":[" "]},{"start":{"row":33,"column":0},"end":{"row":33,"column":4},"action":"remove","lines":[" "]},{"start":{"row":34,"column":0},"end":{"row":34,"column":4},"action":"remove","lines":[" "]},{"start":{"row":35,"column":0},"end":{"row":35,"column":4},"action":"remove","lines":[" "]},{"start":{"row":36,"column":0},"end":{"row":36,"column":4},"action":"remove","lines":[" "]},{"start":{"row":37,"column":0},"end":{"row":37,"column":4},"action":"remove","lines":[" "]},{"start":{"row":38,"column":0},"end":{"row":38,"column":4},"action":"remove","lines":[" "]},{"start":{"row":39,"column":0},"end":{"row":39,"column":4},"action":"remove","lines":[" "]},{"start":{"row":40,"column":0},"end":{"row":40,"column":4},"action":"remove","lines":[" "]},{"start":{"row":41,"column":0},"end":{"row":41,"column":4},"action":"remove","lines":[" "]},{"start":{"row":42,"column":0},"end":{"row":42,"column":4},"action":"remove","lines":[" "]},{"start":{"row":43,"column":0},"end":{"row":43,"column":4},"action":"remove","lines":[" "]},{"start":{"row":44,"column":0},"end":{"row":44,"column":4},"action":"remove","lines":[" "]},{"start":{"row":45,"column":0},"end":{"row":45,"column":4},"action":"remove","lines":[" "]},{"start":{"row":46,"column":0},"end":{"row":46,"column":4},"action":"remove","lines":[" "]},{"start":{"row":47,"column":0},"end":{"row":47,"column":4},"action":"remove","lines":[" "]},{"start":{"row":48,"column":0},"end":{"row":48,"column":4},"action":"remove","lines":[" "]},{"start":{"row":49,"column":0},"end":{"row":49,"column":4},"action":"remove","lines":[" "]},{"start":{"row":50,"column":0},"end":{"row":50,"column":4},"action":"remove","lines":[" "]},{"start":{"row":51,"column":0},"end":{"row":51,"column":4},"action":"remove","lines":[" "]},{"start":{"row":52,"column":0},"end":{"row":52,"column":4},"action":"remove","lines":[" "]},{"start":{"row":53,"column":0},"end":{"row":53,"column":4},"action":"remove","lines":[" "]},{"start":{"row":54,"column":0},"end":{"row":54,"column":4},"action":"remove","lines":[" "]},{"start":{"row":55,"column":0},"end":{"row":55,"column":4},"action":"remove","lines":[" "]},{"start":{"row":56,"column":0},"end":{"row":56,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":16,"column":0},"end":{"row":16,"column":4},"action":"insert","lines":[" "],"id":7}],[{"start":{"row":16,"column":4},"end":{"row":16,"column":8},"action":"remove","lines":["this"],"id":8},{"start":{"row":16,"column":4},"end":{"row":16,"column":11},"action":"insert","lines":["Similar"]}],[{"start":{"row":16,"column":12},"end":{"row":16,"column":13},"action":"insert","lines":["p"],"id":9}],[{"start":{"row":16,"column":13},"end":{"row":16,"column":14},"action":"insert","lines":["r"],"id":10}],[{"start":{"row":16,"column":14},"end":{"row":16,"column":15},"action":"insert","lines":["o"],"id":11}],[{"start":{"row":16,"column":15},"end":{"row":16,"column":16},"action":"insert","lines":["t"],"id":12}],[{"start":{"row":16,"column":16},"end":{"row":16,"column":17},"action":"insert","lines":["o"],"id":13}],[{"start":{"row":16,"column":17},"end":{"row":16,"column":18},"action":"insert","lines":["t"],"id":14}],[{"start":{"row":16,"column":18},"end":{"row":16,"column":19},"action":"insert","lines":["y"],"id":15}],[{"start":{"row":16,"column":19},"end":{"row":16,"column":20},"action":"insert","lines":["p"],"id":16}],[{"start":{"row":16,"column":20},"end":{"row":16,"column":21},"action":"insert","lines":["e"],"id":17}],[{"start":{"row":16,"column":21},"end":{"row":16,"column":22},"action":"insert","lines":["."],"id":18}],[{"start":{"row":34,"column":4},"end":{"row":34,"column":8},"action":"remove","lines":["this"],"id":19},{"start":{"row":34,"column":4},"end":{"row":34,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":40,"column":4},"end":{"row":40,"column":8},"action":"remove","lines":["this"],"id":20},{"start":{"row":40,"column":4},"end":{"row":40,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":56,"column":4},"end":{"row":56,"column":8},"action":"remove","lines":["this"],"id":21},{"start":{"row":56,"column":4},"end":{"row":56,"column":21},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":56,"column":28},"end":{"row":56,"column":32},"action":"remove","lines":["this"],"id":22},{"start":{"row":56,"column":28},"end":{"row":56,"column":45},"action":"insert","lines":["Similar.prototype"]}],[{"start":{"row":8,"column":0},"end":{"row":56,"column":52},"action":"remove","lines":[" function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;"," }"," "," Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," Similar.prototype.has = Similar.prototype.get; "],"id":23}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":[" ",""],"id":24}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":25}],[{"start":{"row":7,"column":1},"end":{"row":8,"column":0},"action":"insert","lines":["",""],"id":26}],[{"start":{"row":8,"column":0},"end":{"row":9,"column":0},"action":"insert","lines":["",""],"id":27}],[{"start":{"row":9,"column":0},"end":{"row":57,"column":52},"action":"insert","lines":[" function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;"," }"," "," Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;"," };"," "," Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;"," };"," "," Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;"," };"," "," Similar.prototype.has = Similar.prototype.get; "],"id":28}],[{"start":{"row":9,"column":0},"end":{"row":9,"column":4},"action":"remove","lines":[" "],"id":30},{"start":{"row":10,"column":0},"end":{"row":10,"column":4},"action":"remove","lines":[" "]},{"start":{"row":11,"column":0},"end":{"row":11,"column":4},"action":"remove","lines":[" "]},{"start":{"row":12,"column":0},"end":{"row":12,"column":4},"action":"remove","lines":[" "]},{"start":{"row":13,"column":0},"end":{"row":13,"column":4},"action":"remove","lines":[" "]},{"start":{"row":14,"column":0},"end":{"row":14,"column":4},"action":"remove","lines":[" "]},{"start":{"row":15,"column":0},"end":{"row":15,"column":4},"action":"remove","lines":[" "]},{"start":{"row":16,"column":0},"end":{"row":16,"column":4},"action":"remove","lines":[" "]},{"start":{"row":17,"column":0},"end":{"row":17,"column":4},"action":"remove","lines":[" "]},{"start":{"row":18,"column":0},"end":{"row":18,"column":4},"action":"remove","lines":[" "]},{"start":{"row":19,"column":0},"end":{"row":19,"column":4},"action":"remove","lines":[" "]},{"start":{"row":20,"column":0},"end":{"row":20,"column":4},"action":"remove","lines":[" "]},{"start":{"row":21,"column":0},"end":{"row":21,"column":4},"action":"remove","lines":[" "]},{"start":{"row":22,"column":0},"end":{"row":22,"column":4},"action":"remove","lines":[" "]},{"start":{"row":23,"column":0},"end":{"row":23,"column":4},"action":"remove","lines":[" "]},{"start":{"row":24,"column":0},"end":{"row":24,"column":4},"action":"remove","lines":[" "]},{"start":{"row":25,"column":0},"end":{"row":25,"column":4},"action":"remove","lines":[" "]},{"start":{"row":26,"column":0},"end":{"row":26,"column":4},"action":"remove","lines":[" "]},{"start":{"row":27,"column":0},"end":{"row":27,"column":4},"action":"remove","lines":[" "]},{"start":{"row":28,"column":0},"end":{"row":28,"column":4},"action":"remove","lines":[" "]},{"start":{"row":29,"column":0},"end":{"row":29,"column":4},"action":"remove","lines":[" "]},{"start":{"row":30,"column":0},"end":{"row":30,"column":4},"action":"remove","lines":[" "]},{"start":{"row":31,"column":0},"end":{"row":31,"column":4},"action":"remove","lines":[" "]},{"start":{"row":32,"column":0},"end":{"row":32,"column":4},"action":"remove","lines":[" "]},{"start":{"row":33,"column":0},"end":{"row":33,"column":4},"action":"remove","lines":[" "]},{"start":{"row":34,"column":0},"end":{"row":34,"column":4},"action":"remove","lines":[" "]},{"start":{"row":35,"column":0},"end":{"row":35,"column":4},"action":"remove","lines":[" "]},{"start":{"row":36,"column":0},"end":{"row":36,"column":4},"action":"remove","lines":[" "]},{"start":{"row":37,"column":0},"end":{"row":37,"column":4},"action":"remove","lines":[" "]},{"start":{"row":38,"column":0},"end":{"row":38,"column":4},"action":"remove","lines":[" "]},{"start":{"row":39,"column":0},"end":{"row":39,"column":4},"action":"remove","lines":[" "]},{"start":{"row":40,"column":0},"end":{"row":40,"column":4},"action":"remove","lines":[" "]},{"start":{"row":41,"column":0},"end":{"row":41,"column":4},"action":"remove","lines":[" "]},{"start":{"row":42,"column":0},"end":{"row":42,"column":4},"action":"remove","lines":[" "]},{"start":{"row":43,"column":0},"end":{"row":43,"column":4},"action":"remove","lines":[" "]},{"start":{"row":44,"column":0},"end":{"row":44,"column":4},"action":"remove","lines":[" "]},{"start":{"row":45,"column":0},"end":{"row":45,"column":4},"action":"remove","lines":[" "]},{"start":{"row":46,"column":0},"end":{"row":46,"column":4},"action":"remove","lines":[" "]},{"start":{"row":47,"column":0},"end":{"row":47,"column":4},"action":"remove","lines":[" "]},{"start":{"row":48,"column":0},"end":{"row":48,"column":4},"action":"remove","lines":[" "]},{"start":{"row":49,"column":0},"end":{"row":49,"column":4},"action":"remove","lines":[" "]},{"start":{"row":50,"column":0},"end":{"row":50,"column":4},"action":"remove","lines":[" "]},{"start":{"row":51,"column":0},"end":{"row":51,"column":4},"action":"remove","lines":[" "]},{"start":{"row":52,"column":0},"end":{"row":52,"column":4},"action":"remove","lines":[" "]},{"start":{"row":53,"column":0},"end":{"row":53,"column":4},"action":"remove","lines":[" "]},{"start":{"row":54,"column":0},"end":{"row":54,"column":4},"action":"remove","lines":[" "]},{"start":{"row":55,"column":0},"end":{"row":55,"column":4},"action":"remove","lines":[" "]},{"start":{"row":56,"column":0},"end":{"row":56,"column":4},"action":"remove","lines":[" "]},{"start":{"row":57,"column":0},"end":{"row":57,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"insert","lines":["m"],"id":31}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"insert","lines":["o"],"id":32}],[{"start":{"row":0,"column":2},"end":{"row":0,"column":3},"action":"insert","lines":["d"],"id":33}],[{"start":{"row":0,"column":3},"end":{"row":0,"column":4},"action":"insert","lines":["u"],"id":34}],[{"start":{"row":0,"column":4},"end":{"row":0,"column":5},"action":"insert","lines":["l"],"id":35}],[{"start":{"row":0,"column":5},"end":{"row":0,"column":6},"action":"insert","lines":["e"],"id":36}],[{"start":{"row":0,"column":6},"end":{"row":0,"column":7},"action":"insert","lines":["."],"id":37}],[{"start":{"row":0,"column":7},"end":{"row":0,"column":8},"action":"insert","lines":["e"],"id":38}],[{"start":{"row":0,"column":8},"end":{"row":0,"column":9},"action":"insert","lines":["x"],"id":39}],[{"start":{"row":0,"column":9},"end":{"row":0,"column":10},"action":"insert","lines":["p"],"id":40}],[{"start":{"row":0,"column":10},"end":{"row":0,"column":11},"action":"insert","lines":["o"],"id":41}],[{"start":{"row":0,"column":11},"end":{"row":0,"column":12},"action":"insert","lines":["r"],"id":42}],[{"start":{"row":0,"column":12},"end":{"row":0,"column":13},"action":"insert","lines":["t"],"id":43}],[{"start":{"row":0,"column":13},"end":{"row":0,"column":14},"action":"insert","lines":["s"],"id":44}],[{"start":{"row":0,"column":14},"end":{"row":0,"column":15},"action":"insert","lines":[" "],"id":45}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":15},"action":"remove","lines":["module.exports "],"id":46}],[{"start":{"row":1,"column":0},"end":{"row":6,"column":5},"action":"remove","lines":[" if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"],"id":47}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"insert","lines":["",""],"id":48}],[{"start":{"row":0,"column":0},"end":{"row":5,"column":5},"action":"insert","lines":[" if (typeof Map === 'function') {"," return new Map();"," }"," else {"," return new Similar();"," }"],"id":49}],[{"start":{"row":5,"column":5},"end":{"row":6,"column":0},"action":"insert","lines":["",""],"id":50},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":4},"action":"remove","lines":[" "],"id":51},{"start":{"row":1,"column":0},"end":{"row":1,"column":4},"action":"remove","lines":[" "]},{"start":{"row":2,"column":0},"end":{"row":2,"column":4},"action":"remove","lines":[" "]},{"start":{"row":3,"column":0},"end":{"row":3,"column":4},"action":"remove","lines":[" "]},{"start":{"row":4,"column":0},"end":{"row":4,"column":4},"action":"remove","lines":[" "]},{"start":{"row":5,"column":0},"end":{"row":5,"column":4},"action":"remove","lines":[" "]},{"start":{"row":6,"column":0},"end":{"row":6,"column":4},"action":"remove","lines":[" "]}],[{"start":{"row":1,"column":0},"end":{"row":1,"column":21},"action":"remove","lines":[" return new Map();"],"id":52}],[{"start":{"row":1,"column":0},"end":{"row":1,"column":4},"action":"insert","lines":[" "],"id":53}],[{"start":{"row":1,"column":4},"end":{"row":1,"column":5},"action":"insert","lines":["m"],"id":54}],[{"start":{"row":1,"column":5},"end":{"row":1,"column":6},"action":"insert","lines":["o"],"id":55}],[{"start":{"row":1,"column":6},"end":{"row":1,"column":7},"action":"insert","lines":["d"],"id":56}],[{"start":{"row":1,"column":7},"end":{"row":1,"column":8},"action":"insert","lines":["u"],"id":57}],[{"start":{"row":1,"column":8},"end":{"row":1,"column":9},"action":"insert","lines":["l"],"id":58}],[{"start":{"row":1,"column":9},"end":{"row":1,"column":10},"action":"insert","lines":["e"],"id":59}],[{"start":{"row":1,"column":10},"end":{"row":1,"column":11},"action":"insert","lines":["."],"id":60}],[{"start":{"row":1,"column":11},"end":{"row":1,"column":12},"action":"insert","lines":["e"],"id":61}],[{"start":{"row":1,"column":12},"end":{"row":1,"column":13},"action":"insert","lines":["x"],"id":62}],[{"start":{"row":1,"column":13},"end":{"row":1,"column":14},"action":"insert","lines":["p"],"id":63}],[{"start":{"row":1,"column":14},"end":{"row":1,"column":15},"action":"insert","lines":["o"],"id":64}],[{"start":{"row":1,"column":15},"end":{"row":1,"column":16},"action":"insert","lines":["r"],"id":65}],[{"start":{"row":1,"column":16},"end":{"row":1,"column":17},"action":"insert","lines":["t"],"id":66}],[{"start":{"row":1,"column":17},"end":{"row":1,"column":18},"action":"insert","lines":["s"],"id":67}],[{"start":{"row":1,"column":18},"end":{"row":1,"column":19},"action":"insert","lines":[" "],"id":68}],[{"start":{"row":1,"column":19},"end":{"row":1,"column":20},"action":"insert","lines":["="],"id":69}],[{"start":{"row":1,"column":20},"end":{"row":1,"column":21},"action":"insert","lines":[" "],"id":70}],[{"start":{"row":1,"column":21},"end":{"row":1,"column":22},"action":"insert","lines":["M"],"id":71}],[{"start":{"row":1,"column":22},"end":{"row":1,"column":23},"action":"insert","lines":["a"],"id":72}],[{"start":{"row":1,"column":23},"end":{"row":1,"column":24},"action":"insert","lines":["p"],"id":73}],[{"start":{"row":1,"column":24},"end":{"row":1,"column":25},"action":"insert","lines":[";"],"id":74}],[{"start":{"row":4,"column":4},"end":{"row":4,"column":25},"action":"remove","lines":["return new Similar();"],"id":75},{"start":{"row":4,"column":4},"end":{"row":4,"column":25},"action":"insert","lines":["module.exports = Map;"]}],[{"start":{"row":4,"column":21},"end":{"row":4,"column":24},"action":"remove","lines":["Map"],"id":76},{"start":{"row":4,"column":21},"end":{"row":4,"column":28},"action":"insert","lines":["Similar"]}],[{"start":{"row":7,"column":0},"end":{"row":9,"column":1},"action":"remove","lines":["function MapOrSimilar() {","","}"],"id":77}],[{"start":{"row":6,"column":0},"end":{"row":7,"column":0},"action":"remove","lines":["",""],"id":78}],[{"start":{"row":5,"column":1},"end":{"row":6,"column":0},"action":"remove","lines":["",""],"id":79}],[{"start":{"row":7,"column":0},"end":{"row":7,"column":14},"action":"insert","lines":["module.exports"],"id":80}],[{"start":{"row":7,"column":14},"end":{"row":7,"column":15},"action":"insert","lines":[" "],"id":81}],[{"start":{"row":7,"column":15},"end":{"row":7,"column":16},"action":"insert","lines":["="],"id":82}],[{"start":{"row":7,"column":16},"end":{"row":7,"column":17},"action":"insert","lines":[" "],"id":83}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"insert","lines":["",""],"id":84}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"insert","lines":["/"],"id":85}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"insert","lines":["*"],"id":86}],[{"start":{"row":7,"column":0},"end":{"row":7,"column":1},"action":"insert","lines":["*"],"id":87}],[{"start":{"row":7,"column":1},"end":{"row":7,"column":2},"action":"insert","lines":["/"],"id":88}],[{"start":{"row":8,"column":0},"end":{"row":8,"column":17},"action":"remove","lines":["module.exports = "],"id":89}],[{"start":{"row":7,"column":2},"end":{"row":8,"column":0},"action":"insert","lines":["",""],"id":90}],[{"start":{"row":57,"column":48},"end":{"row":58,"column":0},"action":"insert","lines":["",""],"id":91}],[{"start":{"row":58,"column":0},"end":{"row":59,"column":0},"action":"insert","lines":["",""],"id":92}],[{"start":{"row":59,"column":0},"end":{"row":59,"column":17},"action":"insert","lines":["module.exports = "],"id":93}],[{"start":{"row":59,"column":17},"end":{"row":59,"column":24},"action":"insert","lines":["Similar"],"id":94}],[{"start":{"row":59,"column":24},"end":{"row":59,"column":25},"action":"insert","lines":[";"],"id":95}],[{"start":{"row":0,"column":1},"end":{"row":0,"column":2},"action":"remove","lines":["*"],"id":96}],[{"start":{"row":0,"column":0},"end":{"row":0,"column":1},"action":"remove","lines":["/"],"id":97}],[{"start":{"row":0,"column":0},"end":{"row":1,"column":0},"action":"remove","lines":["",""],"id":98}],[{"start":{"row":6,"column":1},"end":{"row":6,"column":2},"action":"remove","lines":["/"],"id":99}],[{"start":{"row":6,"column":0},"end":{"row":6,"column":1},"action":"remove","lines":["*"],"id":100}],[{"start":{"row":7,"column":0},"end":{"row":8,"column":0},"action":"remove","lines":["",""],"id":101}],[{"start":{"row":0,"column":0},"end":{"row":57,"column":25},"action":"remove","lines":["if (typeof Map === 'function') {"," module.exports = Map;","}","else {"," module.exports = Similar;","}","","function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;","}","","Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;","};","","Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;","};","","Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;","};","","Similar.prototype.has = Similar.prototype.get; ","","module.exports = Similar;"],"id":102},{"start":{"row":0,"column":0},"end":{"row":55,"column":48},"action":"insert","lines":["if (typeof Map === 'function') {"," module.exports = Map;","}","else {"," module.exports = Similar;","}","","function Similar() {"," this.list = [];"," this.lastHas = null;"," this.size = 0;"," "," return this;","}","","Similar.prototype.get = function(key) {"," var len = this.list.length,"," i;"," "," if (this.lastGet && this.lastGet.key === key) {"," return this.lastGet.val;"," }"," "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," this.lastGet = this.list[i];"," return this.list[i];"," }"," }"," "," return null;","};","","Similar.prototype.set = function(key, val) {"," this.list.push({ key: key, val: val });"," this.size++;"," return this;","};","","Similar.prototype.delete = function(key) {"," var len = this.list.length,"," i; "," for (i = 0; i < len; i++) {"," if (this.list[i].key === key) {"," break;"," }"," }"," "," if (this.list.splice(i, 1).length) {"," this.size--;"," }"," "," return this;","};","","Similar.prototype.has = Similar.prototype.get; "]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":8,"column":19},"end":{"row":8,"column":19},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1454312195000,"hash":"783a2853be60ab04cf24a81894df8a6ef36a7753"} |
{ | ||
"name": "memoizerific", | ||
"version": "1.0.3", | ||
"description": "Fastest, smallest, most-efficient JavaScript (JS) memoization lib", | ||
"version": "1.0.4", | ||
"description": "Fastest, smallest, most-efficient JavaScript memoization lib to memoize JS functions", | ||
"author": "@thinkloop", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
# Memoizerific.js | ||
Fastest (see benchmarks), smallest (923b min/gzip), most-efficient, dependency-free, JavaScript (JS) memoization lib. | ||
Fastest (see benchmarks), smallest (923b min/gzip), most-efficient, dependency-free, JavaScript memoization lib to memoize JS functions. | ||
Fully supports multiple complex object arguments. | ||
@@ -8,4 +8,4 @@ Implements LRU (least recently used) cache to maintain only the most recent results. | ||
Memoization is the process of caching function results so that they can be returned cheaply | ||
without re-running the function when it is re-invoked with the same arguments. | ||
Memoization is the process of caching function results, so that they can be returned cheaply, | ||
without re-running the function when it is called again with the same arguments. | ||
@@ -44,3 +44,3 @@ ## Install | ||
``` | ||
The cache works using LRU logic (least recently used), purging the oldest results when the limit is reached. | ||
The cache works using LRU logic, purging the least recently used results when the limit is reached. | ||
@@ -60,4 +60,4 @@ ```javascript | ||
There are many memoization libs available for JavaScript. Some of them have specialized use-cases, such as memoizing file-system access, or server async requests. | ||
While others, such as this library, tackle the more general use-case of memoizing standard synchronous functions. Few, however, are suitable for real-world production environments. | ||
Following are the minimum criteria I look for in a professional memoization solution: | ||
While others, such as this one, tackle the more general case of memoizing standard synchronous functions. | ||
Following are the minimum criteria I look for in a production-worthy memoization solution: | ||
@@ -69,5 +69,5 @@ - **Support for multiple arguments**: One argument memoizers start to fall short quickly when solving real problems. | ||
Using this simply list, we can narrow down the field of possible candidates dramatically. | ||
The popular [lodash solution](https://lodash.com/docs#memoize), for example, only supports one argument out of the box and has no cache-size control. | ||
Others support multiple complex arguments, but do not provide cache-size control solution: | ||
Using this list, we can narrow down the field of possible candidates by quite a bit. | ||
The popular [lodash memoize](https://lodash.com/docs#memoize), for example, only supports one argument out of the box and has no cache-size control. | ||
Others support multiple complex arguments, but _do not manage the cache-size_ either: | ||
@@ -88,3 +88,3 @@ - :heavy_multiplication_x: [Memoizejs](https://github.com/addyosmani/memoize.js) (@addyosmani) | ||
After some quick testing, however, the library by @neilk was simply producing incorrect results, leaving two viable candidates. | ||
After some quick testing, however, we found the library by @neilk to be producing incorrect results, leaving only two viable candidates. | ||
Time to test performance. | ||
@@ -95,3 +95,3 @@ | ||
This library is intended for real-world use-cases, and is therefore benchmarked against other libraries using large, complex, real-world data. | ||
Humanity doesn't need any more fibonacci solvers after all. | ||
We don't need any more fibonacci solving tools. | ||
Example arguments look like this: | ||
@@ -98,0 +98,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
484114
1