]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] el: Remove dependency to util
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 May 2020 12:09:43 +0000 (15:09 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 May 2020 12:10:58 +0000 (15:10 +0300)
src/locale/el.js

index 0af375b31addbcd7fcf5e7ede99847dad9b2e3d8..0ef451729d40ef539c021f03d4edbe97e4f7f896 100644 (file)
@@ -3,7 +3,13 @@
 //! author : Aggelos Karalias : https://github.com/mehiel
 
 import moment from '../moment';
-import isFunction from '../lib/utils/is-function';
+
+function isFunction(input) {
+    return (
+        (typeof Function !== 'undefined' && input instanceof Function) ||
+        Object.prototype.toString.call(input) === '[object Function]'
+    );
+}
 
 export default moment.defineLocale('el', {
     monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(