mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 22:13:48 +01:00
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
|
/* */
|
||
|
'use strict';
|
||
|
var strong = require("./$.collection-strong");
|
||
|
require("./$.collection")('Map', function(get) {
|
||
|
return function Map() {
|
||
|
return get(this, arguments[0]);
|
||
|
};
|
||
|
}, {
|
||
|
get: function get(key) {
|
||
|
var entry = strong.getEntry(this, key);
|
||
|
return entry && entry.v;
|
||
|
},
|
||
|
set: function set(key, value) {
|
||
|
return strong.def(this, key === 0 ? 0 : key, value);
|
||
|
}
|
||
|
}, strong, true);
|