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 f70a653 commit 63ca816
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 91 deletions.
14 changes: 4 additions & 10 deletions enumerable-properties-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var enumerablePropertiesIn = require( '@stdlib/utils/enumerable-properties-in' );

var hasSymbols;
var props;
var obj;

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

function Foo() {
this.a = 'b';
Expand All @@ -83,11 +79,9 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

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

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

</section>
Expand Down
13 changes: 4 additions & 9 deletions enumerable-properties-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 enumerablePropertiesIn = require( './../lib' );

var hasSymbols;
var props;
var obj;

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

function Foo() {
this.a = 'b';
Expand All @@ -41,8 +37,7 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

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

var obj = new Foo();
var props = enumerablePropertiesIn( obj );
console.log( props );
// => [ 'a', 'foo', ... ]
// e.g., => [ 'a', 'foo', ... ]
14 changes: 4 additions & 10 deletions inherited-properties/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var defineProperty = require( '@stdlib/utils/define-property' );
var inheritedProperties = require( '@stdlib/utils/inherited-properties' );

var hasSymbols;
var props;
var obj;

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

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

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

console.log( props );
// => [ ..., 'c', 'bip', ... ]
var obj = new Foo();
var props = inheritedProperties( obj );
// returns [ ..., 'c', 'bip', ... ]
```

</section>
Expand Down
13 changes: 4 additions & 9 deletions inherited-properties/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ var Symbol = require( '@stdlib/symbol/ctor' );
var defineProperty = require( './../../define-property' );
var inheritedProperties = require( './../lib' );

var hasSymbols;
var props;
var obj;

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

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

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

var obj = new Foo();
var props = inheritedProperties( obj );
console.log( props );
// => [ 'c', 'bip', ... ]
// => [ ..., 'c', 'bip', ... ]
13 changes: 4 additions & 9 deletions inherited-property-symbols/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var inheritedPropertySymbols = require( '@stdlib/utils/inherited-property-symbols' );

var hasSymbols;
var symbols;
var obj;

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

function Foo() {
if ( hasSymbols ) {
Expand All @@ -82,10 +78,9 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'c' ) ] = 'd';
}

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

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

</section>
Expand Down
12 changes: 4 additions & 8 deletions inherited-property-symbols/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 inheritedPropertySymbols = 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( 'c' ) ] = 'd';
}

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

var obj = new Foo();
var symbols = inheritedPropertySymbols( obj );
console.log( symbols );
// e.g., => [ Symbol( 'c' ) ]
14 changes: 4 additions & 10 deletions nonenumerable-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 nonEnumerablePropertiesIn = require( '@stdlib/utils/nonenumerable-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 = nonEnumerablePropertiesIn( obj );

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

</section>
Expand Down
11 changes: 3 additions & 8 deletions nonenumerable-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 nonEnumerablePropertiesIn = 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 = nonEnumerablePropertiesIn( obj );

var obj = new Foo();
var props = nonEnumerablePropertiesIn( obj );
console.log( props );
// => [ 'b', 'beep', ... ]
14 changes: 4 additions & 10 deletions properties-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ var hasSymbolSupport = require( '@stdlib/assert/has-symbol-support' );
var Symbol = require( '@stdlib/symbol/ctor' );
var propertiesIn = require( '@stdlib/utils/properties-in' );

var hasSymbols;
var props;
var obj;

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

function Foo() {
this.a = 'b';
Expand All @@ -79,11 +75,9 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

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

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

</section>
Expand Down
11 changes: 3 additions & 8 deletions properties-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 propertiesIn = require( './../lib' );

var hasSymbols;
var props;
var obj;

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

function Foo() {
this.a = 'b';
Expand All @@ -41,8 +37,7 @@ if ( hasSymbols ) {
Foo.prototype[ Symbol( 'foo' ) ] = 'bar';
}

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

var obj = new Foo();
var props = propertiesIn( obj );
console.log( props );
// => [ 'a', 'foo', ... ]

0 comments on commit 63ca816

Please sign in to comment.