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:
@@ -16,4 +16,5 @@ const debounce = (callback, delay) => {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default debounce
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -167,7 +167,6 @@ const queryClosestParent = ($el, selector) => {
|
||||
}
|
||||
|
||||
|
||||
// Export
|
||||
export {
|
||||
escapeHtml,
|
||||
unescapeHtml,
|
||||
|
||||
@@ -103,7 +103,6 @@ const lazyLoadImage = async ($el, url, callback) => {
|
||||
}
|
||||
|
||||
|
||||
// Export
|
||||
export {
|
||||
getImageMetadata,
|
||||
loadImage,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -45,7 +45,6 @@ const getTranslate = $el => {
|
||||
}
|
||||
|
||||
|
||||
// Export
|
||||
export {
|
||||
transform,
|
||||
getTranslate
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user