Hi
Is there any option to turn off the following jshint warning?
Do not use String as a constructor.
I have some library code, which needs to detect an object type - it could be a string or integer or array. I would like the library to work with string literals such as "foo" as well as with a string created with new String("foo")
To test all execution paths of the library, unit tests use data which looks something like the following:
var testData = {
name_1: "foo"
name_2: new String("foo")
}
This is where jshint warns against the use of new String("foo")
Is there any inline option to turn off this warning?