aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/builtin/js/map.js.v
blob: 894d614cf0be0672472587a2e7e5f6874cf03859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module builtin

struct map {
	m   JS.Map
	len int
}

// Removes the mapping of a particular key from the map.
[unsafe]
pub fn (mut m map) delete(key voidptr) {
	#m.map.delete(key)
}

pub fn (m &map) free() {}

#map.prototype[Symbol.iterator] = function () { return this.map[Symbol.iterator](); }