Class: shaka.util.MapUtils

A set of map/object utility functions.

Constructor

new MapUtils()

A set of map/object utility functions.

Source:

Methods

asMap(objectnon-null) → {Map.<KEY, VALUE>}

Parameters:
Name Type Description
object Object.<KEY, VALUE>
Source:
Returns:
Type
Map.<KEY, VALUE>

asObject(mapnon-null) → {Object.<KEY, VALUE>}

Parameters:
Name Type Description
map Map.<KEY, VALUE>
Source:
Returns:
Type
Object.<KEY, VALUE>

hasSameElements(map1, map2) → {boolean}

NOTE: This only works for simple value types and will not be accurate if map values are objects!
Parameters:
Name Type Description
map1 Map.<KEY, VALUE>
map2 Map.<KEY, VALUE>
Source:
Returns:
Type
boolean