1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Remove export comment

This commit is contained in:
Lucas Vallenet
2022-05-25 13:28:15 +02:00
parent 92500f908f
commit 6a4043408b
7 changed files with 3 additions and 25 deletions

View File

@@ -16,4 +16,5 @@ const debounce = (callback, delay) => {
}
}
export default debounce

View File

@@ -5,4 +5,5 @@ const html = document.documentElement;
const body = document.body;
const isDebug = html.hasAttribute('data-debug');
export { APP_NAME, DATA_API_KEY, html, body, isDebug };

View File

@@ -167,7 +167,6 @@ const queryClosestParent = ($el, selector) => {
}
// Export
export {
escapeHtml,
unescapeHtml,

View File

@@ -103,7 +103,6 @@ const lazyLoadImage = async ($el, url, callback) => {
}
// Export
export {
getImageMetadata,
loadImage,

View File

@@ -1,22 +1,4 @@
const toString = Object.prototype.toString;
const arrayLikePattern = /^\[object (?:Array|FileList)\]$/;
/**
* Check if argument is an array
* @param {?array} x - element to check
* @return {boolean} true if element is an array
*/
const isArray = x => toString.call(x) === '[object Array]'
/**
* Check if argument is an array like
* @param {array|object} x - element to check
* @return {boolean} true if element is an array like
*/
const isArrayLike = x => arrayLikePattern.test(toString.call(x))
/**
@@ -56,10 +38,7 @@ const isObject = x => (x && toString.call(x) === '[object Object]')
const isFunction = x => x instanceof Function
// Export
export {
isArray,
isArrayLike,
isEqual,
isNumeric,
isObject,

View File

@@ -45,7 +45,6 @@ const getTranslate = $el => {
}
// Export
export {
transform,
getTranslate

File diff suppressed because one or more lines are too long