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.

Revisions

  1. @gruppjo gruppjo created this gist Jul 24, 2014.
    8 changes: 8 additions & 0 deletions isemptyobject.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    'use strict';

    angular.module('crmApp')
    .filter('isEmptyObject', function () {
    return function (obj) {
    return angular.equals({}, obj);
    };
    });