acl-js/src-js/rounding_policy.js
// Returns true if the provided value is a proper RoundingPolicy instance.
Returns true if the provided value is a proper RoundingPolicy instance.
Returns true if the provided value is a proper RoundingPolicy instance .
function isRoundingPolicy(policy) {
  if (!policy) return false
  switch (policy) {
    case RoundingPolicy.None:
    case RoundingPolicy.Floor:
    case RoundingPolicy.Ceil:
    case RoundingPolicy.Nearest:
      return true
    default:
      return false
  }
}
function isRoundingPolicy ( policy ) { if ( ! policy ) return false switch ( policy ) { case RoundingPolicy . None : case RoundingPolicy . Floor : case RoundingPolicy . Ceil : case RoundingPolicy . Nearest : return true default : return false } }
Returns true if the provided value is a proper RoundingPolicy instance.
Returns true if the provided value is a proper RoundingPolicy instance .