ASP.NET Pack Programmer's Guide
Unit.isEmpty Property
See Also
 





Gets a value representing whether this Unit instance has a set value.

Namespace: MindFusion.Mapping
Package: Unit.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Unit.prototype, "isEmpty", { value: Boolean });

 Property Value

Boolean. true if the Unit's value is null, otherwise false.

 Example

The following code checks if a Unit is empty:

JavaScript  Copy Code

var m = MindFusion.Mapping;

var unit = new m.Unit();

if(unit.isEmpty())
  unit = m.Unit.percentage(100);

 See Also

Unit Members
Unit Class
MindFusion.Mapping Namespace