From 6f72b6928f576d3d66caf32892f54a984adbd528 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 9 Nov 2023 08:31:00 +0000 Subject: [PATCH] Auto-generated commit --- has-sharedarraybuffer-support/README.md | 2 ++ is-arrow-function/README.md | 4 ++-- is-regexp/README.md | 2 ++ is-same-native-class/README.md | 3 +++ is-symbol-array/README.md | 2 ++ is-symbol/README.md | 3 +++ 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/has-sharedarraybuffer-support/README.md b/has-sharedarraybuffer-support/README.md index 0b389425..f1039d2c 100644 --- a/has-sharedarraybuffer-support/README.md +++ b/has-sharedarraybuffer-support/README.md @@ -36,6 +36,8 @@ var hasSharedArrayBufferSupport = require( '@stdlib/assert/has-sharedarraybuffer Detects if a runtime environment supports [`SharedArrayBuffer`][mdn-sharedarraybuffer]. + + ```javascript var bool = hasSharedArrayBufferSupport(); // returns diff --git a/is-arrow-function/README.md b/is-arrow-function/README.md index 8a38b6ba..1ce94967 100644 --- a/is-arrow-function/README.md +++ b/is-arrow-function/README.md @@ -34,7 +34,7 @@ var isArrowFunction = require( '@stdlib/assert/is-arrow-function' ); Tests if a `value` is a an [`arrow function`][mdn-arrow-function] such as `( a, b ) => a + b`, `x => x`, or `( x ) => { return x*x; }`. - + ```javascript var beep = () => { @@ -60,7 +60,7 @@ bool = isArrowFunction( boop ); ## Examples - + diff --git a/is-regexp/README.md b/is-regexp/README.md index 60475f04..afd107a7 100644 --- a/is-regexp/README.md +++ b/is-regexp/README.md @@ -50,6 +50,8 @@ bool = isRegExp( {} ); ## Examples + + ```javascript diff --git a/is-same-native-class/README.md b/is-same-native-class/README.md index 24e01382..29de3c94 100644 --- a/is-same-native-class/README.md +++ b/is-same-native-class/README.md @@ -56,9 +56,12 @@ bool = isSameNativeClass( [], {} ); ## Examples + + ```javascript +var Number = require( '@stdlib/number/ctor' ); var isSameNativeClass = require( '@stdlib/assert/is-same-native-class' ); var bool = isSameNativeClass( 3.14, new Number( 3.14 ) ); diff --git a/is-symbol-array/README.md b/is-symbol-array/README.md index 277b1e21..8535c49f 100644 --- a/is-symbol-array/README.md +++ b/is-symbol-array/README.md @@ -49,6 +49,7 @@ bool = isSymbolArray( [ 'beep', 'boop' ] ); Tests if a `value` is an array-like object containing only [`symbol`][mdn-symbol] primitives. ```javascript +var Object = require( '@stdlib/object/ctor' ); var Symbol = require( '@stdlib/symbol/ctor' ); var bool = isSymbolArray.primitives( [ Symbol( 'beep' ), Symbol( 'boop' ) ] ); @@ -63,6 +64,7 @@ bool = isSymbolArray.primitives( [ Symbol( 'beep' ), Object( Symbol( 'boop' ) ) Tests if a `value` is an array-like object containing only [`Symbol`][mdn-symbol] objects. ```javascript +var Object = require( '@stdlib/object/ctor' ); var Symbol = require( '@stdlib/symbol/ctor' ); var bool = isSymbolArray.objects( [ Object( Symbol( 'beep' ) ), Object( Symbol( 'boop' ) ) ] ); diff --git a/is-symbol/README.md b/is-symbol/README.md index 1fe1205a..68e5920e 100644 --- a/is-symbol/README.md +++ b/is-symbol/README.md @@ -35,6 +35,7 @@ var isSymbol = require( '@stdlib/assert/is-symbol' ); Tests if a value is a [symbol][mdn-symbol]. ```javascript +var Object = require( '@stdlib/object/ctor' ); var Symbol = require( '@stdlib/symbol/ctor' ); var bool = isSymbol( Symbol( 'beep' ) ); @@ -49,6 +50,7 @@ bool = isSymbol( Object( Symbol( 'beep' ) ) ); Tests if a `value` is a primitive [symbol][mdn-symbol]. ```javascript +var Object = require( '@stdlib/object/ctor' ); var Symbol = require( '@stdlib/symbol/ctor' ); var bool = isSymbol.isPrimitive( Symbol( 'beep' ) ); @@ -63,6 +65,7 @@ bool = isSymbol.isPrimitive( Object( Symbol( 'boop' ) ) ); Tests if a `value` is a [`Symbol`][mdn-symbol] object. ```javascript +var Object = require( '@stdlib/object/ctor' ); var Symbol = require( '@stdlib/symbol/ctor' ); var bool = isSymbol.isObject( Symbol( 'beep' ) );