Skip to content

Commit 17b86b8

Browse files
isValid consitions removed
1 parent cc94779 commit 17b86b8

File tree

1 file changed

+0
-17
lines changed
  • lib/node_modules/@stdlib/string/base/replace-after/lib

1 file changed

+0
-17
lines changed

lib/node_modules/@stdlib/string/base/replace-after/lib/main.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020

2121
// MODULES //
2222

23-
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24-
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
25-
var format = require( '@stdlib/string/format' );
26-
27-
2823
// MAIN //
2924

3025
/**
@@ -66,19 +61,7 @@ var format = require( '@stdlib/string/format' );
6661
*/
6762
function replaceAfter( str, replacement, search, fromIndex ) {
6863
var idx;
69-
if ( !isString( str ) ) {
70-
throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', str ) );
71-
}
72-
if ( !isString( replacement ) ) {
73-
throw new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', replacement ) );
74-
}
75-
if ( !isString( search ) ) {
76-
throw new TypeError( format( 'invalid argument. Third argument must be a string. Value: `%s`.', search ) );
77-
}
7864
if ( arguments.length > 3 ) {
79-
if ( !isInteger( fromIndex ) ) {
80-
throw new TypeError( format( 'invalid argument. Fourth argument must be an integer. Value: `%s`.', fromIndex ) );
81-
}
8265
idx = str.indexOf( search, fromIndex );
8366
} else {
8467
idx = str.indexOf( search );

0 commit comments

Comments
 (0)