add-unit.sjs 296 B

1234567891011121314151617
  1. var antmove_export = {};
  2. /* eslint-disable */
  3. var REGEXP = getRegExp('^\d+(\.\d+)?$');
  4. function addUnit(value) {
  5. if (value == null) {
  6. return undefined;
  7. }
  8. return REGEXP.test('' + value) ? value + 'px' : value;
  9. }
  10. antmove_export = {
  11. addUnit: addUnit
  12. };
  13. export default antmove_export;