Skip to content

Instantly share code, notes, and snippets.

@rettal
Forked from gruppjo/isemptyobject.js
Created January 25, 2016 09:26
Show Gist options
  • Save rettal/52547a9bed0fe0f9d93d to your computer and use it in GitHub Desktop.
Save rettal/52547a9bed0fe0f9d93d to your computer and use it in GitHub Desktop.
angularjs - empty object filter
'use strict';
angular.module('crmApp')
.filter('isEmptyObject', function () {
return function (obj) {
return angular.equals({}, obj);
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment