Skip to content

Commit

Permalink
Update assertString.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chyzwar authored Apr 6, 2017
1 parent 228740c commit 520bf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/assertString.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function assertString(input) {
const isString = (typeof input === 'string' || input instanceof String);

if (!isString) {
throw new TypeError('This library (validator.js) validates strings only');
}
Expand Down

0 comments on commit 520bf19

Please sign in to comment.