ran npm run tdd
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
module.exports = size = val =>
|
||||
const size = val =>
|
||||
Array.isArray(val)
|
||||
? val.length
|
||||
: val && typeof val === 'object'
|
||||
? val.size || val.length || Object.keys(val).length
|
||||
: typeof val === 'string' ? new Blob([val]).size : 0;
|
||||
: typeof val === 'string' ? new Blob([val]).size : 0;
|
||||
module.exports = size
|
||||
Reference in New Issue
Block a user