Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are working in <a href="http://docs.angularjs.org" rel="noreferrer">AngularJS</a>, the <code>angular.equals</code> function will determine if two objects are equal. In <a href="http://emberjs.com/api/" rel="noreferrer">Ember.js</a> use <code>isEqual</code>.</p> <ul> <li><code>angular.equals</code> - See the <a href="http://docs.angularjs.org/api/angular.equals" rel="noreferrer">docs</a> or <a href="https://github.com/angular/angular.js/blob/6c59e770084912d2345e7f83f983092a2d305ae3/src/Angular.js#L670" rel="noreferrer">source</a> for more on this method. It does a deep compare on arrays too.</li> <li>Ember.js <code>isEqual</code> - See the <a href="http://emberjs.com/api/#method_isEqual" rel="noreferrer">docs</a> or <a href="https://github.com/emberjs/ember.js/blob/dfbdbea00bb94f3c1620bd09145540a8bbb8e224/packages/ember-runtime/lib/is-equal.js" rel="noreferrer">source</a> for more on this method. It does not do a deep compare on arrays.</li> </ul> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var purple = [{"purple": "drank"}]; var drank = [{"purple": "drank"}]; if(angular.equals(purple, drank)) { document.write('got dat'); }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"&gt;&lt;/script&gt;</code></pre> </div> </div> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload