Open
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,8 +27,8 @@
* @param {NonNegativeInteger} size - cache size
* @returns {Array} cache
*/
function create( size ) {
return new Array( size );
function create(size) {
return Array.from({ length: size });

Check failure on line 31 in lib/node_modules/@stdlib/_tools//get/lib/cache.js

View workflow job for this annotation

Actions / Lint Changed Files

Expected indentation of 1 tab but found 4 spaces

Check failure on line 31 in lib/node_modules/@stdlib/_tools//get/lib/cache.js

View workflow job for this annotation

Actions / Lint Changed Files

The 'Array.from' is not supported until Node.js 4.0.0. The configured version range is '>=0.12.18'

Check failure on line 31 in lib/node_modules/@stdlib/_tools//get/lib/cache.js

View workflow job for this annotation

Actions / Lint Changed Files

Expected a line break after this opening brace

Check failure on line 31 in lib/node_modules/@stdlib/_tools//get/lib/cache.js

View workflow job for this annotation

Actions / Lint Changed Files

Unquoted property 'length' found

Check failure on line 31 in lib/node_modules/@stdlib/_tools//get/lib/cache.js

View workflow job for this annotation

Actions / Lint Changed Files

Expected a line break before this closing brace
}


Expand Down
Loading