Module Js.Map

Bindings to functions in Map

ES6 Map API

type t('k, 'v);
let make: unit => t('k, 'v);
let fromArray: array(('k, 'v)) => t('k, 'v);
let toArray: t('k, 'v) => array(('k, 'v));
let size: t('k, 'v) => int;
let has: t('k, 'v) => key:'k => bool;
let get: t('k, 'v) => key:'k => option('v);
let set: t('k, 'v) => key:'k => value:'v => t('k, 'v);
let clear: t('k, 'v) => unit;
let delete: t('k, 'v) => key:'k => bool;
let forEach: f:('v => 'k => t('k, 'v) => unit) => t('k, 'v) => unit;
let keys: t('k, 'v) => Js.iterator('k);
let values: t('k, 'v) => Js.iterator('v);
let entries: t('k, 'v) => Js.iterator(('k, 'v));