]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/math/sign/shim.js
4df9c95aa5d64fa4c35b12f7a1a3fffc5c5048a5
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / math / sign / shim.js
1 'use strict';
2
3 module.exports = function (value) {
4 value = Number(value);
5 if (isNaN(value) || (value === 0)) return value;
6 return (value > 0) ? 1 : -1;
7 };