Skip to content

Commit c5b10c6

Browse files
committedJul 15, 2023
docs: update examples and fix test case
1 parent 7caad0b commit c5b10c6

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed
 

‎lib/node_modules/@stdlib/string/remove-first/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var str = removeFirst( 'last man standing' );
7171
str = removeFirst( 'presidential election' );
7272
// returns 'residential election'
7373

74-
str = removeFirst( 'javaScript' );
74+
str = removeFirst( 'JavaScript' );
7575
// returns 'avaScript'
7676

7777
str = removeFirst( 'Hidden Treasures' );

‎lib/node_modules/@stdlib/string/remove-first/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* // returns 'residential election'
3535
*
3636
* @example
37-
* var out = removeFirst( 'javaScript' );
37+
* var out = removeFirst( 'JavaScript' );
3838
* // returns 'avaScript'
3939
*
4040
* @example

‎lib/node_modules/@stdlib/string/remove-first/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import removeFirst = require( './index' );
4343
removeFirst( 'abc', true ); // $ExpectError
4444
removeFirst( 'abc', false ); // $ExpectError
4545
removeFirst( 'abc', null ); // $ExpectError
46-
removeFirst( 'abc', undefined ); // $ExpectError
4746
removeFirst( 'abc', 'abc' ); // $ExpectError
4847
removeFirst( 'abc', [] ); // $ExpectError
4948
removeFirst( 'abc', {} ); // $ExpectError

‎lib/node_modules/@stdlib/string/remove-first/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ console.log( removeFirst( 'last man standing' ) );
2626
console.log( removeFirst( 'presidential election' ) );
2727
// => 'residential election'
2828

29-
console.log( removeFirst( 'javaScript' ) );
29+
console.log( removeFirst( 'JavaScript' ) );
3030
// => 'avaScript'
3131

3232
console.log( removeFirst( 'Hidden Treasures' ) );

‎lib/node_modules/@stdlib/string/remove-first/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var format = require( '@stdlib/string/format' );
4646
* // returns 'residential election'
4747
*
4848
* @example
49-
* var out = removeFirst( 'javaScript' );
49+
* var out = removeFirst( 'JavaScript' );
5050
* // returns 'avaScript'
5151
*
5252
* @example

0 commit comments

Comments
 (0)
Please sign in to comment.