This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit c4601bff03e008f70a714f0291026112e4cf0dfb Author: Daniel Gruno <[email protected]> AuthorDate: Sat Nov 13 17:41:03 2021 +0100 add prototype for empty check --- webui/js/source/base-js-extensions.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webui/js/source/base-js-extensions.js b/webui/js/source/base-js-extensions.js index 60d3fc1..6669d37 100644 --- a/webui/js/source/base-js-extensions.js +++ b/webui/js/source/base-js-extensions.js @@ -155,4 +155,12 @@ Array.prototype.has = function(val) { } } return false; -}; \ No newline at end of file +}; + +Object.prototype.isEmpty = function() { + return ( + this + && Object.keys(this).length === 0 + && Object.getPrototypeOf(this) === Object.prototype + ) +}
