es5-ext
Advanced tools
Comparing version 0.10.17 to 0.10.18
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.10.18"></a> | ||
## [0.10.18](https://github.com/medikoo/es5-ext/compare/v0.10.17...v0.10.18) (2017-05-15) | ||
### Bug Fixes | ||
* take all changes in safeToString ([3c5cd12](https://github.com/medikoo/es5-ext/commit/3c5cd12)) | ||
<a name="0.10.17"></a> | ||
@@ -7,0 +17,0 @@ ## [0.10.17](https://github.com/medikoo/es5-ext/compare/v0.10.16...v0.10.17) (2017-05-15) |
{ | ||
"name": "es5-ext", | ||
"version": "0.10.17", | ||
"version": "0.10.18", | ||
"description": "ECMAScript extensions and shims", | ||
@@ -5,0 +5,0 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)", |
'use strict'; | ||
var isCallable = require('./object/is-callable'); | ||
module.exports = function (value) { | ||
try { | ||
if (value && isCallable(value.toString)) return value.toString(); | ||
return String(value); | ||
@@ -6,0 +9,0 @@ } catch (e) { |
431244
7473