mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[all] Fix validation tests, added function isNum
This commit is contained in:
@ -32,6 +32,9 @@
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var ws = AscTest.JsApi.GetActiveSheet();
|
var ws = AscTest.JsApi.GetActiveSheet();
|
||||||
|
function isNum(value) {
|
||||||
|
return !isNaN(parseFloat(value)) && isFinite(value);
|
||||||
|
}
|
||||||
|
|
||||||
// ======= TEST HELPERS =======
|
// ======= TEST HELPERS =======
|
||||||
// Must exist & each test must start with it
|
// Must exist & each test must start with it
|
||||||
|
|||||||
Reference in New Issue
Block a user