UNPKG

@progress/kendo-angular-common

Version:
12 lines (11 loc) 678 B
/**----------------------------------------------------------------------------------------- * Copyright © 2020 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ const toClassList = (classNames) => String(classNames).trim().split(' '); const ɵ0 = toClassList; export const hasClasses = (element, classNames) => { const namesList = toClassList(classNames); return Boolean(toClassList(element.className).find((className) => namesList.indexOf(className) >= 0)); }; export { ɵ0 };