lodash.isstring
Advanced tools
Comparing version 2.2.1 to 2.3.0
/** | ||
* Lo-Dash 2.2.1 (Custom Build) <http://lodash.com/> | ||
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> | ||
* Build: `lodash modularize modern exports="npm" -o ./npm/` | ||
@@ -16,3 +16,3 @@ * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> | ||
/** Native method shortcuts */ | ||
/** Used to resolve the internal [[Class]] of values */ | ||
var toString = objectProto.toString; | ||
@@ -30,9 +30,10 @@ | ||
* | ||
* _.isString('moe'); | ||
* _.isString('fred'); | ||
* // => true | ||
*/ | ||
function isString(value) { | ||
return typeof value == 'string' || toString.call(value) == stringClass; | ||
return typeof value == 'string' || | ||
value && typeof value == 'object' && toString.call(value) == stringClass || false; | ||
} | ||
module.exports = isString; |
{ | ||
"name": "lodash.isstring", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "The Lo-Dash function `_.isString` as a Node.js module generated by lodash-cli.", | ||
@@ -11,3 +11,3 @@ "homepage": "http://lodash.com/custom-builds", | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)", | ||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)", | ||
@@ -18,2 +18,2 @@ "Mathias Bynens <mathias@qiwi.be> (http://mathiasbynens.be/)" | ||
"repository": { "type": "git", "url": "https://github.com/lodash/lodash-cli.git" } | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.isstring v2.2.1 | ||
# lodash.isstring v2.3.0 | ||
@@ -7,3 +7,3 @@ The [Lo-Dash](http://lodash.com/) function [`_.isString`](http://lodash.com/docs#isString) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). | ||
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") | | ||
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | | ||
|---| | ||
@@ -14,4 +14,4 @@ | [John-David Dalton](http://allyoucanleet.com/) | | ||
| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](http://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](http://twitter.com/mathias "Follow @mathias on Twitter") | | ||
| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | | ||
|---|---|---| | ||
| [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) | | ||
| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | |
4280
32