ModelHandle/source/core/core.js
2021-07-10 18:48:59 +02:00

22 lines
316 B
JavaScript

OV =
{
};
OV.ValueOrDefault = function (val, def)
{
if (val === undefined || val === null) {
return def;
}
return val;
};
OV.EnumerateKeyValuePairs = function (arr, proc)
{
for (let key in arr) {
if (arr.hasOwnProperty (key)) {
proc (key, arr[key]);
}
}
};