Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 13, 2021
1 parent 7bc7052 commit cfe1151
Show file tree
Hide file tree
Showing 50 changed files with 257 additions and 383 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
# * is a special character in YAML so you have to quote this string
- cron: '30 1 * * 6'
workflow_dispatch:
push:

# Workflow jobs:
jobs:
Expand Down
6 changes: 3 additions & 3 deletions has-arrow-function-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

# Arrow Function Support

> Detect native [`arrow function`][arrow-function] support.
> Detect native [`arrow function`][mdn-arrow-function] support.
<section class="usage">

Expand All @@ -32,7 +32,7 @@ var hasArrowFunctionSupport = require( '@stdlib/assert/has-arrow-function-suppor

#### hasArrowFunctionSupport()

Detects if a runtime environment supports ES2015 [`arrow functions`][arrow-function]` such as `( a, b ) => a + b`, `x => x`, or `( x ) => { return x*x; }`.
Detects if a runtime environment supports ES2015 [`arrow functions`][mdn-arrow-function]` such as `( a, b ) => a + b`, `x => x`, or `( x ) => { return x*x; }`.

```javascript
var bool = hasArrowFunctionSupport();
Expand Down Expand Up @@ -116,7 +116,7 @@ $ has-arrow-function-support

<section class="links">

[arrow-function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
[mdn-arrow-function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

[mdn-csp]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

Expand Down
5 changes: 2 additions & 3 deletions has-arrow-function-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-function-name-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-generator-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-map-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-proxy-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-set-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-symbol-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-tostringtag-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-wasm-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-weakmap-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions has-weakset-support/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
15 changes: 6 additions & 9 deletions is-absolute-path/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});

Expand All @@ -65,11 +64,10 @@ bench( pkg+':posix', function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});

Expand All @@ -87,10 +85,9 @@ bench( pkg+':win32', function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-alphagram/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-arguments/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-arrow-function/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
2 changes: 1 addition & 1 deletion is-arrow-function/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var fcn2str = Function.prototype.toString;
* function beep() {
* return 'beep';
* }
*
* var bool = isArrowFunction( beep );
* // returns false
*/
Expand Down
1 change: 0 additions & 1 deletion is-arrow-function/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ tape( 'main export is a function', function test( t ) {
});

// Run arrow function tests if environment supports `() => {}`...

if ( hasArrowFunctions ) {
require( './es2015-arrow-function' ); // eslint-disable-line stdlib/no-unassigned-require
}
Expand Down
5 changes: 2 additions & 3 deletions is-buffer/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-date-object/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-empty-array/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
5 changes: 2 additions & 3 deletions is-empty-object/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ bench( pkg, function benchmark( b ) {
}
}
b.toc();
if ( isBoolean( bool ) ) {
b.pass( 'benchmark finished' );
} else {
if ( !isBoolean( bool ) ) {
b.fail( 'should return a boolean' );
}
b.pass( 'benchmark finished' );
b.end();
});
Loading

0 comments on commit cfe1151

Please sign in to comment.