ensure
is a helper guard function that ensure that the passed value is not null nor undefined. Else an error gets triggered. It's usefull when you are sure that a value is defined and don't want to chain if
everywhere.
ensure
is a helper guard function that ensure that the passed value is not null nor undefined. Else an error gets triggered. It's usefull when you are sure that a value is defined and don't want to chain if
everywhere.