.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / isNumbery.js
1 // Too weird for Flow
2 "use strict";
3
4 /**
5  * Check whether it's a number or a number-like string:
6  * i.e. when coerced to a number it == itself.
7  */
8 module.exports = function(value) {
9   /* eslint-disable eqeqeq */
10   return value.trim().length !== 0 && Number(value) == value;
11   /* eslint-enable eqeqeq */
12 };