UNPKG

ember-legacy-class-transform

Version:
10 lines (9 loc) 203 B
define(function(){ /** * Check if value is close to target. */ function isNear(val, target, threshold){ return (Math.abs(val - target) <= threshold); } return isNear; });