Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@supertenant/core / src / util / propertySizes.js
Size: Mime:
// (c) Copyright 2023 Supertenant Ltd. - all rights reserved.
// See LICENSE file in project root for license terms.
"use strict";module.exports=function propertySizes(object,prefix){null==prefix&&(prefix="");let sizes=[];return Object.keys(object).forEach(property=>{var serializedProperty,value=object[property];null!=value&&(Array.isArray(value)||"object"!=typeof value?(serializedProperty=JSON.stringify(object[property]),sizes.push({property:prefix+property,length:serializedProperty?serializedProperty.length:0})):sizes=sizes.concat(propertySizes(value,prefix+property+".")))}),sizes};