mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Array.isArray to isArray
Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
parent
986b8f056b
commit
0b64083543
30 changed files with 82 additions and 69 deletions
|
|
@ -1,6 +1,8 @@
|
|||
/* eslint key-spacing: 0 */
|
||||
/* eslint quote-props: 0 */
|
||||
|
||||
import { isNonEmptyArray } from 'Common/Utils';
|
||||
|
||||
const
|
||||
cache = {},
|
||||
app = 'application/',
|
||||
|
|
@ -279,7 +281,7 @@ export const FileInfo = {
|
|||
* @returns {string}
|
||||
*/
|
||||
getCombinedIconClass: data => {
|
||||
if (Array.isNotEmpty(data)) {
|
||||
if (isNonEmptyArray(data)) {
|
||||
let icons = data
|
||||
.map(item => item ? FileInfo.getIconClass(FileInfo.getExtension(item[0]), item[1])[0] : '')
|
||||
.validUnique();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue