removeBeforeOwnPropert圜hangeListener(key, listener) Unregisters a property change listener provided by addOwnPropert圜hangeListener. removeOwnPropert圜hangeListener(name, listener, beforeChange?) addBeforeOwnPropert圜hangeListener(name, listener)Īdds a listener for before a property changes. addOwnPropert圜hangeListener(key, listener, beforeChange?)Īdds a listener for an owned property with the given name. Informs map change listeners that an entry will be created, deleted, or updated. Informs map change listeners that an entry was created, deleted, or updated. dispatchMapChange(key, value, beforeChange?) Unregisters a map change listener provided by addBeforeMapChangeListener or addMapChangeListener with the beforeChange flag. removeBeforeMapChangeListener(listener, token?) Unregisters a map change listener provided by addMapChangeListener. ![]() removeMapChangeListener(listener, token?, beforeChange?) addBeforeMapChangeListener(listener, token?)Īdds a listener for before map entries are created, deleted, or updated. addMapChangeListener(listener, token?, beforeChange?)Īdds a listener for when the value for a key changes, or when entries are added or removed. The hash function used by this collection to hash its own values. The equals function used to check whether values in this collection are equivalent. constructClone(values?)Ĭreates a shallow clone of this collection. clone(depth?, memo?)Ĭreates a deep replica of this collection. Returns whether this collection is equivalent to the given collection. Used by JSON.stringify to create a JSON representation of the collection. Returns an object with each property name and value corresponding to the entries in this collection. Returns an array of each value in this collection. flatten()Īssuming that this is a collection of collections, returns a new collection that contains all the values of each nested collection in order. Returns a new collection of the same type containing all the values of itself and the values of any number of other iterable collections in order. Returns an array of entries for each value in this collection, counting all values from the given index. Returns an array of the respective values in this collection and in each collection provided as an argument. Returns the largest value in this collection. Returns the smallest value in this collection. Returns the arithmetic mean of the collection, by computing its sum and the count of values and returning the quotient. Returns the sum of all values in this collection. Returns a string of all the values in the collection delimited by the given string. Returns a copy of this collection with the values in reverse order. Returns a sorted array of the values in this collection. Returns the only value in this collection, or undefined if there is more than one value, or if there are no values in the collection. Returns whether all values in the collection are truthy. Returns whether any value in the collection is truthy. Returns whether every entry in this collection passes a given test. Returns whether any entry in this collection passes a given test. Returns an array of entries where every value from the collection is placed into the same equivalence class if they return the same key through the given callback. reduceRight(callback, basis)Īggregates every value in this collection, from right to left. ![]() reduce(callback, basis)Īggregates every value in this collection with the result collected up to that index. Returns an array with each value from this collection that passes the given test. Returns an array of the respective return values of a callback for each entry in this collection. forEach(callback, thisp?)Ĭalls the callback for each entry in the collection. clear()ĭeletes all of the values in the collection. Returns the number of successful deletions. deleteEach(values|keys, equals?)ĭeletes every value or every value for each key. addEach(values|map)Ĭopies values or entries from another collection into this collection, and then returns this. Returns an array of all entries for this map. ![]() Returns an array of the values of this map. Returns an array of the keys of this map. Returns whether the key was found and successfully deleted. delete(key)ĭeletes the value for a given key. add(value, key)Īdds a value for a given key to a map. Returns whether an entry with the given key exists in a Map. Which is called by get(key) if no entry is found for the requested key.Ī Map is backed by a Set of entries, with contentEquals andĬontentHash overridden to only consider the key. The optional getDefault function overrides the map’s own getDefault method, Properties that operate on the keys of the map to determine whether keys are ![]() The optional equals and hash override the contentEquals and contentHash A map of entries, where keys may be arbitrary values including objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |