hummingbird-me/hummingbird

View on GitHub
frontend/app/utils/computed/property-equal.js

Summary

Maintainability
A
0 mins
Test Coverage
import Ember from 'ember';

export default function computedPropertyEqual(p1, p2) {
  return Ember.computed(p1, p2, function() {
    return this.get(p1) === this.get(p2);
  });
}