Skip to content

Commit 13180b4

Browse files
authored
fix: eslint max-depth disable for array/base/mskunary5
Signed-off-by: Vinit Pandit <[email protected]>
1 parent 7b29603 commit 13180b4

File tree

1 file changed

+4
-15
lines changed
  • lib/node_modules/@stdlib/array/base/mskunary5d/lib

1 file changed

+4
-15
lines changed

lib/node_modules/@stdlib/array/base/mskunary5d/lib/main.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18+
/* eslint-disable max-depth */
1819

1920
'use strict';
2021

@@ -110,26 +111,14 @@ function mskunary5d(arrays, shape, fcn) {
110111
y0 = y1[i1];
111112
m0 = m1[i1];
112113
for (i0 = 0; i0 < S0; i0++) {
113-
applyfcn(x0, y0, m0, i0);
114+
if (m0[i0] === 0) {
115+
y0[i0] = fcn(x0[i0]);
116+
}
114117
}
115118
}
116119
}
117120
}
118121
}
119-
120-
/**
121-
* Applies the function to a specific element of the arrays.
122-
* @private
123-
* @param {Array} fx0 - input array element
124-
* @param {Array} fy0 - output array element
125-
* @param {Array} fm0 - mask array element
126-
* @param {number} fi0 - index
127-
*/
128-
function applyfcn(fx0, fy0, fm0, fi0) {
129-
if (fm0[fi0] === 0) {
130-
fy0[fi0] = fcn(fx0[fi0]);
131-
}
132-
}
133122
}
134123

135124

0 commit comments

Comments
 (0)