0 votes
in JavaScript by

Mention some of the functions used in ember packages/ember run-time/lib and packages/ember metal/lib/utils.js ?

1 Answer

0 votes
by
  • None : Returns tur if argument is null or undefined
  • Empty: Utility function constrains the rules on ember.none by returning false for empty string and empty arrays
  • isArray: Use this to check whether the value is an array
  • MakeArray: This function is used when you want a given object in an array
  • Typeof: This is used to get the type of the passed argument
  • Compare: Used to compare two objects of possibly different types
  • isEqual: It checks whether the passed two arguments are logically equal
  • inspect: While debugging this function is useful. For a given object it returns the string description
  • Log_Binding:  Log binding is not a function but a Boolean function. If set true ember will log all the activity that is happening on the bindings

Related questions

0 votes
asked Mar 12, 2020 in JavaScript by GeorgeBell
0 votes
asked Mar 13, 2020 in JavaScript by Tate
...