Skip to content

Commit 987242f

Browse files
committed
Rename internal functions
1 parent 022722b commit 987242f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/unary/lib/copy_ndarray.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param {NonNegativeInteger} idx - element index
2929
* @returns {*} element
3030
*/
31-
function getElement( buf, idx ) {
31+
function getIndexed( buf, idx ) {
3232
return buf[ idx ];
3333
}
3434

@@ -52,7 +52,7 @@ function getAccessor( buf, idx ) {
5252
* @param {NonNegativeInteger} idx - element index
5353
* @param {*} value - value to set
5454
*/
55-
function setElement( buf, idx, value ) {
55+
function setIndexed( buf, idx, value ) {
5656
buf[ idx ] = value;
5757
}
5858

@@ -102,8 +102,8 @@ function copy( x ) {
102102
'offset': x.offset,
103103
'order': x.order,
104104
'accessors': bool,
105-
'getter': ( bool ) ? getAccessor : getElement,
106-
'setter': ( bool ) ? setAccessor : setElement
105+
'getter': ( bool ) ? getAccessor : getIndexed,
106+
'setter': ( bool ) ? setAccessor : setIndexed
107107
};
108108
}
109109

0 commit comments

Comments
 (0)