Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isNewFilesSizeOverbound(attachFiles, limit) {
- var filesSize = attachFiles.reduce(function(acc, file) {
- return acc + file.size;
- }, 0);
- return filesSize > limit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement