These are already part of Javascript.
Array.isArray(x) - static method of the array class
object.hasOwnProperty('name') - member function of all classesOn Sat, Aug 6, 2016, 11:45 Fred Morrison <[email protected]> wrote: > What is the Angular 2 equivalent of Angular 1's built-in angular.isArray, > angular.isDefined, etc., as documented at the example Angular 1 link shown > below? > > https://docs.angularjs.org/api/ng/function/angular.isArray > > I have searched the Angular 2 documents and the migration guide, but have > not found the answer. > > My best guess is that I have to do some type of import, but from where? > > The Angular 1 to Angular 2 migration documentation is missing this vital > piece of information (or it's hidden in an non-obvious location). > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
