File tree 5 files changed +4
-5
lines changed
lib/node_modules/@stdlib/string/remove-first
5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ var str = removeFirst( 'last man standing' );
71
71
str = removeFirst ( ' presidential election' );
72
72
// returns 'residential election'
73
73
74
- str = removeFirst ( ' javaScript ' );
74
+ str = removeFirst ( ' JavaScript ' );
75
75
// returns 'avaScript'
76
76
77
77
str = removeFirst ( ' Hidden Treasures' );
Original file line number Diff line number Diff line change 34
34
* // returns 'residential election'
35
35
*
36
36
* @example
37
- * var out = removeFirst( 'javaScript ' );
37
+ * var out = removeFirst( 'JavaScript ' );
38
38
* // returns 'avaScript'
39
39
*
40
40
* @example
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ import removeFirst = require( './index' );
43
43
removeFirst ( 'abc' , true ) ; // $ExpectError
44
44
removeFirst ( 'abc' , false ) ; // $ExpectError
45
45
removeFirst ( 'abc' , null ) ; // $ExpectError
46
- removeFirst ( 'abc' , undefined ) ; // $ExpectError
47
46
removeFirst ( 'abc' , 'abc' ) ; // $ExpectError
48
47
removeFirst ( 'abc' , [ ] ) ; // $ExpectError
49
48
removeFirst ( 'abc' , { } ) ; // $ExpectError
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ console.log( removeFirst( 'last man standing' ) );
26
26
console . log ( removeFirst ( 'presidential election' ) ) ;
27
27
// => 'residential election'
28
28
29
- console . log ( removeFirst ( 'javaScript ' ) ) ;
29
+ console . log ( removeFirst ( 'JavaScript ' ) ) ;
30
30
// => 'avaScript'
31
31
32
32
console . log ( removeFirst ( 'Hidden Treasures' ) ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ var format = require( '@stdlib/string/format' );
46
46
* // returns 'residential election'
47
47
*
48
48
* @example
49
- * var out = removeFirst( 'javaScript ' );
49
+ * var out = removeFirst( 'JavaScript ' );
50
50
* // returns 'avaScript'
51
51
*
52
52
* @example
You can’t perform that action at this time.
0 commit comments