Use `Object(tolerance) === tolerance` here. Everything in Javascript in an object.