From 7977aeb21def68c6a20534bc3eeee76192e1d20e Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Mon, 4 May 2020 15:09:43 +0300 Subject: [PATCH] [locale] el: Remove dependency to util --- src/locale/el.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/locale/el.js b/src/locale/el.js index 0af375b31..0ef451729 100644 --- a/src/locale/el.js +++ b/src/locale/el.js @@ -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( -- 2.47.2