text: "use strict";
  
  exports.__esModule = true;
  exports.default = void 0;
  
  /**
   * Returns a given CSS value minus its unit (or the original value if an invalid string is passed).
   *
   * @example
   * // Styles as object usage
   * const styles = {
   *   '--dimension': stripUnit('100px')
   * }
   *
   * // styled-components usage
   * const div = styled.div`
   *   --dimension: ${stripUnit('100px')}
   * `
   *
   * // CSS in JS Output
   *
   * element {
   *   '--dimension': 100
   * }
   */
  function stripUnit(value) {
    var unitlessValue = parseFloat(value);
    if (isNaN(unitlessValue)) return value;
    return unitlessValue;
  }
  
  var _default = stripUnit;
  exports.default = _default;
  module.exports = exports.default;