Ensure that Node and npm are both installed.
Then, install gulp globally:
npm install -g gulp
Finally, install all development dependencies:
cd CLONED_REPO_DIR
npm install
Run the default gulp task to run the linter, run unit tests, build documentation, and build the required scripts.
Look at the gulp folder to view the available tasks to run.
If you're interested in contributing, see the Contributing section below. Otherwise, install this package via npm: map-polyfill.
The dist folder contains all you'll need to get up and running.
The built documentation will always be located here: Documentation.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
See the CHANGELOG.
Licensed under MIT. See the full license here: license.
A class used to expose constants. Intended to be consumed by whomever requires these.
Used to get and set values for a particular object
The message that will be thrown if an invalid key is used as part of the set method
Contains the weakmap namespace
Contains the es6map namespace
An interface intended to be used such that the MapIterator class implements all required methods
Contains the es6map namespace
A class used as a polyfill for the native MapIterator object.
The constructor for MapIterator
The map
The type of iterator
Gets the next value
The next value
Contains the es6map namespace
An interface intended to be used such that the Map class implements all required methods
Contains the es6map namespace
A class used as a polyfill for the native WeakMap object. Intended to be used as a collection of key / value pairs
The constructor for a Map
An array of arrays. The array's elements are key value pairs.
Clears the Map
Deletes a key from the current Map
The key to delete
Whether or not the deletion was successful
Returns a MapIterator for entries
The MapIterator
Executes the callback for each key tied to the map
The callback function
The context in which to call the callback function
Gets the value tied to a particular object used as the key for the current Map instance
The key
The value
Whether or not the current Map has a particular key
Whether or not the WeakMap has a particular key
Returns a MapIterator for keys
The MapIterator
Sets a value for a particular key
The key
Returns a MapIterator for values
The MapIterator
Contains the es6map namespace
Class used to generate a unique sequence of numbers such that they will never overlap. Used in conjunction with MapUtils to be used as a unique value / identifier
The constructor for a MapSequencer
Gets the next number in the sequence
The next number in the sequence
Gets an instance of MapSequencer
The instance
Contains the es6map namespace
A utility class intended to be used in conjunction with the Map class
Defines a unique property that's un-enumerable if the unique property does not already exist. Otherwise, it doesn't do anything and simply returns the value of the property that's already set on the object.
The object
The value set
Gets the value tied to an object
The object
The unique identifier tied to an object
Whether or not an object is valid
The object to check
Whether or not the object is value
Custom Window type definitions
Generated using TypeDoc
Contains the es6map namespace
brendenpalmer
MIT
weakmap