MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / valFn

Function valFn

CustomerManager/Scripts/breeze.debug.js:2436–2443  ·  view source on GitHub ↗
(v, ctx)

Source from the content-addressed store, hash-verified

2434 **/
2435 ctor.required = function (context) {
2436 var valFn = function (v, ctx) {
2437 if (typeof v === "string") {
2438 if (ctx && ctx.allowEmptyStrings) return true;
2439 return v.length > 0;
2440 } else {
2441 return v != null;
2442 }
2443 };
2444 return new ctor("required", valFn, context);
2445 };
2446

Callers

nothing calls this directly

Calls 4

__isGuidFunction · 0.85
__isDurationFunction · 0.85
__isDateFunction · 0.85
luhnFunction · 0.85

Tested by

no test coverage detected