mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-25 17:18:21 -05:00
12 lines
240 B
SCSS
12 lines
240 B
SCSS
|
@charset "UTF-8";
|
||
|
|
||
|
/// Checks for a valid number.
|
||
|
///
|
||
|
/// @param {Number} $value
|
||
|
///
|
||
|
/// @require {function} contains
|
||
|
|
||
|
@function is-number($value) {
|
||
|
@return contains("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" 0 1 2 3 4 5 6 7 8 9, $value);
|
||
|
}
|