📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 05:59:00
📂
/ (Root)
/
home
/
xeqi7597
/
cds.claireduwig.com
/
wp-content
/
plugins
/
generateblocks
/
src
/
utils
/
filter-attributes
📍 /home/xeqi7597/cds.claireduwig.com/wp-content/plugins/generateblocks/src/utils/filter-attributes
🔄 Refresh
✏️
Editing: index.js
Writable
/** * Given an attributes object will return only the allowed attributes * * @param {Object} attributes Full block attributes * @param {Array} allowedKeys The allowed attributes * @return {Object} The filtered attributes object */ export default ( attributes, allowedKeys = [] ) => Object .keys( attributes ) .filter( ( key ) => allowedKeys.includes( key ) ) .reduce( ( result, key ) => Object.assign( {}, result, { [ key ]: attributes[ key ] } ), {} );
💾 Save Changes
❌ Cancel