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 Oct 7, 2022
1 parent 224902b commit 24b005c
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 76 deletions.
7 changes: 2 additions & 5 deletions copy/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ var randu = require( '@stdlib/random/base/randu' );
var Int32Array = require( '@stdlib/array/int32' );
var copy = require( './../lib' );

var arr;
var out;

arr = [
var arr = [
{
'x': new Date(),
'y': [ randu(), randu() ],
Expand All @@ -41,7 +38,7 @@ arr = [
];

// Perform a full-deep copy:
out = copy( arr );
var out = copy( arr );

console.log( arr[ 0 ] === out[ 0 ] );
// => false
Expand Down
10 changes: 3 additions & 7 deletions property-symbols-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var propertySymbolsIn = require( '@stdlib/utils/property-symbols-in' );

var hasSymbols;
var symbols;
var obj;

hasSymbols = hasSymbolSupport();
var hasSymbols = hasSymbolSupport();

function Foo() {
if ( hasSymbols ) {
Expand All @@ -80,8 +76,8 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

obj = new Foo();
symbols = propertySymbolsIn( obj );
var obj = new Foo();
var symbols = propertySymbolsIn( obj );

console.log( symbols );
```
Expand Down
10 changes: 3 additions & 7 deletions property-symbols-in/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var propertySymbolsIn = require( './../lib' );

var hasSymbols;
var symbols;
var obj;

hasSymbols = hasSymbolSupport();
var hasSymbols = hasSymbolSupport();

function Foo() {
if ( hasSymbols ) {
Expand All @@ -39,7 +35,7 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

obj = new Foo();
symbols = propertySymbolsIn( obj );
var obj = new Foo();
var symbols = propertySymbolsIn( obj );

console.log( symbols );
7 changes: 2 additions & 5 deletions try-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,10 @@ function done( str ) {
}
}

var out;
var f;

// Synchronous...
f = wrap( beep );
var f = wrap( beep );

out = f( 'boop' );
var out = f( 'boop' );
console.log( out );
// => 'beep boop'

Expand Down
7 changes: 2 additions & 5 deletions try-function/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,10 @@ function done( str ) {
}
}

var out;
var f;

// Synchronous...
f = wrap( beep );
var f = wrap( beep );

out = f( 'boop' );
var out = f( 'boop' );
console.log( out );
// => 'beep boop'

Expand Down
4 changes: 1 addition & 3 deletions try-require/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ if ( x instanceof Error ) {
```javascript
var tryRequire = require( '@stdlib/utils/try-require' );
var out;
out = tryRequire( '_abcdefghijklmnopqrstuvwxyz123456789_' );
var out = tryRequire( '_abcdefghijklmnopqrstuvwxyz123456789_' );
if ( out instanceof Error ) {
console.error( out.message );
} else {
Expand Down
4 changes: 1 addition & 3 deletions try-require/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

var tryRequire = require( './../lib' );

var out;

out = tryRequire( '_abcdefghijklmnopqrstuvwxyz123456789_' );
var out = tryRequire( '_abcdefghijklmnopqrstuvwxyz123456789_' );
if ( out instanceof Error ) {
console.error( out.message );
} else {
Expand Down
14 changes: 4 additions & 10 deletions writable-properties-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var writablePropertiesIn = require( '@stdlib/utils/writable-properties-in' );

var hasSymbols;
var props;
var obj;

hasSymbols = hasSymbolSupport();
var hasSymbols = hasSymbolSupport();

function Foo() {
this.a = 'a';
Expand Down Expand Up @@ -115,11 +111,9 @@ if ( hasSymbols ) {
});
}

obj = new Foo();
props = writablePropertiesIn( obj );

console.log( props );
// e.g., => [ 'a', 'foo', ... ]
var obj = new Foo();
var props = writablePropertiesIn( obj );
// e.g., returns [ 'a', 'foo', ... ]
```

</section>
Expand Down
11 changes: 3 additions & 8 deletions writable-properties-in/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var writablePropertiesIn = require( './../lib' );

var hasSymbols;
var props;
var obj;

hasSymbols = hasSymbolSupport();
var hasSymbols = hasSymbolSupport();

function Foo() {
this.a = 'a';
Expand Down Expand Up @@ -66,8 +62,7 @@ if ( hasSymbols ) {
});
}

obj = new Foo();
props = writablePropertiesIn( obj );

var obj = new Foo();
var props = writablePropertiesIn( obj );
console.log( props );
// e.g., => [ 'a', 'foo', ... ]
10 changes: 3 additions & 7 deletions writable-properties/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var writableProperties = require( '@stdlib/utils/writable-properties' );

var hasSymbols = hasSymbolSupport();
var props;
var obj;

function Foo() {
this.a = 'a';
Expand All @@ -99,11 +97,9 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'c' ) ] = 'c';
}

obj = new Foo();
props = writableProperties( obj );

console.log( props );
// e.g., => [ 'a', ... ]
var obj = new Foo();
var props = writableProperties( obj );
// e.g., returns [ 'a', ... ]
```

</section>
Expand Down
7 changes: 2 additions & 5 deletions writable-properties/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var writableProperties = require( './../lib' );

var hasSymbols = hasSymbolSupport();
var props;
var obj;

function Foo() {
this.a = 'a';
Expand All @@ -52,8 +50,7 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'c' ) ] = 'c';
}

obj = new Foo();
props = writableProperties( obj );

var obj = new Foo();
var props = writableProperties( obj );
console.log( props );
// => [ 'a', ... ]
9 changes: 3 additions & 6 deletions writable-property-symbols/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var writablePropertySymbols = require( '@stdlib/utils/writable-property-symbols' );

var hasSymbols = hasSymbolSupport();
var symbols;
var obj;

function Foo() {
if ( hasSymbols ) {
Expand All @@ -93,10 +91,9 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'bip' ) ] = 'bop';
}

obj = new Foo();
symbols = writablePropertySymbols( obj );

console.log( symbols );
var obj = new Foo();
var symbols = writablePropertySymbols( obj );
// e.g., returns [ Symbol( 'baz' ) ]
```

</section>
Expand Down
8 changes: 3 additions & 5 deletions writable-property-symbols/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var writablePropertySymbols = require( './../lib' );

var hasSymbols = hasSymbolSupport();
var symbols;
var obj;

function Foo() {
if ( hasSymbols ) {
Expand All @@ -37,7 +35,7 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'bip' ) ] = 'bop';
}

obj = new Foo();
symbols = writablePropertySymbols( obj );

var obj = new Foo();
var symbols = writablePropertySymbols( obj );
console.log( symbols );
// e.g., returns [ Symbol( 'baz' ) ]

0 comments on commit 24b005c

Please sign in to comment.