How can one check if a variable is empty in Angular 2? I know that there are native ways such as
if (myVar === null) {do stuff}
but I am looking for something like Angular 1 had such as
if (angular.isEmpty(variable)) { do stuff }
.
Q How do check if variable is empty using Angular 2?