Skip to content

Commit e69bb12

Browse files
chore: fix JavaScript lint errors (issue #9527)
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 55030f9 commit e69bb12

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

  • lib/node_modules/@stdlib

lib/node_modules/@stdlib/assert/deep-has-own-property/examples/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@
2222

2323
var deepHasOwnProp = require( './../lib' );
2424

25-
var obj = { 'a': { 'b': { 'c': 'd' } } };
26-
var bool = deepHasOwnProp( obj, 'a.b.c' );
25+
var obj;
26+
var bool;
27+
var has;
28+
29+
obj = { 'a': { 'b': { 'c': 'd' } } };
30+
bool = deepHasOwnProp( obj, 'a.b.c' );
2731
console.log( bool );
2832
// => true
2933

@@ -44,29 +48,25 @@ bool = deepHasOwnProp( obj, 'a.b.c.d' );
4448
console.log( bool );
4549
// => false
4650

47-
obj = { 'a': [ { 'b': { 'c': 'd' } } ] };
51+
obj = { 'a': [{ 'b': { 'c': 'd' } }] };
4852
bool = deepHasOwnProp( obj, [ 'a', '0', 'b', 'c', 'd' ] );
4953
console.log( bool );
5054
// => false
5155

5256
obj = { 'a': { 'b': { 'c': 'd' } } };
53-
bool = deepHasOwnProp( obj, 'a/b/c/d/e', {
54-
'sep': '/'
55-
});
57+
bool = deepHasOwnProp( obj, 'a/b/c/d/e', { 'sep': '/' });
5658
console.log( bool );
5759
// => false
5860

5961
// Create a customized function:
60-
var has = deepHasOwnProp.factory( 'a_b_c', {
61-
'sep': '_'
62-
});
62+
has = deepHasOwnProp.factory( 'a_b_c', { 'sep': '_' });
6363

6464
obj = { 'a': { 'b': { 'c': 'd' } } };
6565
bool = has( obj );
6666
console.log( bool );
6767
// => true
6868

69-
obj = { 'a': [ { 'b': { 'c': 'd' } } ] };
69+
obj = { 'a': [{ 'b': { 'c': 'd' } }] };
7070
bool = has( obj );
7171
console.log( bool );
7272
// => false

lib/node_modules/@stdlib/lapack/base/dlaswp/test/test.dlaswp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ var COL_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/column_major_ipiv_stride_ne
4242
var COL_MAJOR_LDA = require( './fixtures/column_major_lda.json' );
4343
var COL_MAJOR_REV_PIVOTS = require( './fixtures/column_major_reverse_pivots.json' );
4444
var COL_MAJOR_K1 = require( './fixtures/column_major_k1.json' );
45-
4645
var ROW_MAJOR = require( './fixtures/row_major_no_offsets.json' );
4746
var ROW_MAJOR_IPIV_STRIDE_POS = require( './fixtures/row_major_ipiv_stride_positive.json' );
4847
var ROW_MAJOR_IPIV_STRIDE_NEG = require( './fixtures/row_major_ipiv_stride_negative.json' );

lib/node_modules/@stdlib/utils/nonenumerable-property-names/lib/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var getOwnPropertyNames = require( '@stdlib/utils/property-names' );
2424
var isNonEnumerableProperty = require( '@stdlib/assert/is-nonenumerable-property' );
25+
var Object = require( '@stdlib/object/ctor' );
2526

2627

2728
// MAIN //

0 commit comments

Comments
 (0)