assertion library for type both primitive and custom type checking in js.