Skip to content

Commit

Permalink
doc修正(arr.splice)
Browse files Browse the repository at this point in the history
  • Loading branch information
salano-ym committed Apr 11, 2024
1 parent a1e98cf commit de79a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/primitive-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ _fromIndex_ および _toIndex_ に関する挙動は`arr.slice`に準拠しま
`arr.copy`同様シャローコピーであり、配列やオブジェクトの参照は維持されます。
_times_ には0以上の整数値を指定します。それ以外ではエラーになります。

### @(_v_: arr).splice(_index_: num, _remove_count_: num, _items_: arr\<value>): arr\<value>
### @(_v_: arr).splice(_index_: num, _remove_count_?: num, _items_?: arr\<value>): arr\<value>
**【この操作は配列を書き換えます】**
配列の _index_ から _remove_count_ 個の要素を取り除き、その位置に _items_ の要素を挿入します。
返り値として、取り除いた要素の配列を返します。\
Expand Down

0 comments on commit de79a95

Please sign in to comment.