Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tape( 'the function guards against a `BigInt` global variable which does not pro
tmp = BigInt;
BigInt = {}; // eslint-disable-line no-global-assign
} else {
global.BigInt = {};
global.BigInt = {}; // eslint-disable-line n/no-unsupported-features/es-builtins
}
t.strictEqual( detect(), false, 'detection result is `false`' );
if ( hasBigInts ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
* limitations under the License.
*/

/* eslint-disable object-curly-newline, no-empty-function, no-restricted-syntax */
/* eslint-disable no-empty-function */

'use strict';

var Float64Array = require( '@stdlib/array/float64' );
var isArrayLikeObject = require( './../lib' );

console.log( isArrayLikeObject( { 'length': 10 } ) );
var v = {
'length': 10
};
console.log( isArrayLikeObject( v ) );
// => true

console.log( isArrayLikeObject( [] ) );
Expand All @@ -32,9 +35,10 @@ console.log( isArrayLikeObject( [] ) );
console.log( isArrayLikeObject( new Float64Array( 10 ) ) );
// => true

console.log( (function test() {
v = (function test() {
return isArrayLikeObject( arguments );
})() );
})();
console.log( v );
// => true

console.log( isArrayLikeObject( 'beep' ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' );
var rcap = require( './fixtures/row_major_complex_access_pattern.json' );

var cu = require( './fixtures/column_major_u.json' );
var cl = require( './fixtures/column_major_l.json' );
var cx0 = require( './fixtures/column_major_x0.json' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// MODULES //

var hasOwnProp = require( '@stdlib/assert/has-own-property' );
var lowercase = require( '@stdlib/string/base/lowercase' );
var format = require( '@stdlib/string/format' );


Expand Down Expand Up @@ -55,7 +56,7 @@ function uncapitalizeKeys( obj ) {
if ( key === '' ) {
out[ key ] = obj[ key ];
} else {
k = key.charAt( 0 ).toLowerCase() + key.slice( 1 );
k = lowercase( key.charAt( 0 ) ) + key.slice( 1 );
out[ k ] = obj[ key ];
}
}
Expand Down