mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
renamed <set>.replaceIndex(..) to <set>.replaceAt(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4f41f81f70
commit
58483dce17
@ -40,7 +40,7 @@ Library of JavaScript type extensions, types and utilities.
|
||||
- [`<map>.sort(..)`](#mapsort)
|
||||
- [`Set`](#set)
|
||||
- [`<set>.replace(..)`](#setreplace)
|
||||
- [`<set>.replaceIndex(..)`](#setreplaceindex)
|
||||
- [`<set>.replaceAt(..)`](#setreplaceat)
|
||||
- [`<set>.unite(..)`](#setunite)
|
||||
- [`<set>.intersect(..)`](#setintersect)
|
||||
- [`<set>.subtract(..)`](#setsubtract)
|
||||
@ -926,7 +926,7 @@ Note that when sorting large sets this can get expensive.
|
||||
|
||||
|
||||
|
||||
### `<set>.replaceIndex(..)`
|
||||
### `<set>.replaceAt(..)`
|
||||
|
||||
Replace item at position in set retaining order
|
||||
```bnf
|
||||
|
||||
2
Set.js
2
Set.js
@ -60,7 +60,7 @@ object.Mixin('SetMixin', 'soft', {
|
||||
ordered
|
||||
&& this.sort(order)
|
||||
return this },
|
||||
replaceIndex: function(index, value, ordered=true){
|
||||
replaceAt: function(index, value, ordered=true){
|
||||
// nothing to do...
|
||||
if(this.size < index || old === value){
|
||||
return this }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "6.7.0",
|
||||
"version": "6.8.0",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user