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 Nov 9, 2023
1 parent 4c2427a commit 6b99546
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,19 @@ var proto = greet.prototype;

Calls the specified function with the given `this` argument and arguments provided as an array-like object.

<!-- eslint-disable no-invalid-this -->

```javascript
function add( x, y ) {
return x + y;
return this.initial + x + y;
}
var v = add.apply( null, [ 1, 2 ] );
// returns 3

var ctx = {
'initial': 10
};

var v = add.apply( ctx, [ 1, 2 ] );
// returns 13
```

<a name="method-bind"></a>
Expand All @@ -173,13 +180,19 @@ var v = add1( 2 );

Calls the specified function with the given `this` value and arguments.

<!-- eslint-disable no-invalid-this -->

```javascript
function add( x, y ) {
return x + y;
return this.initial + x + y;
}

var v = add.call( null, 1, 2 );
// returns 3
var ctx = {
'initial': 10
};

var v = add.call( ctx, 1, 2 );
// returns 13
```

<a name="method-to-string"></a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {},
"devDependencies": {
"@stdlib/bench": "^0.1.0",
"@stdlib/bench": "^0.2.0",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
Expand Down

0 comments on commit 6b99546

Please sign in to comment.