PluginProbe
Packeta / 2.3.2
Packeta v2.3.2
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / PacketaWidget / stringifyOptions.js

stringifyOptions.js in Packeta 2.3.2, at src/PacketaWidget/stringifyOptions.js

17 lines 519 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 export const stringifyOptions = function ( widgetOptions ) {
2 let widgetOptionsArray = [];
3 for ( const property in widgetOptions ) {
4 if ( ! widgetOptions.hasOwnProperty( property ) ) {
5 continue;
6 }
7 let propertyValue;
8 if ( typeof widgetOptions[ property ] === 'object' ) {
9 propertyValue = stringifyOptions( widgetOptions[ property ] );
10 } else {
11 propertyValue = widgetOptions[ property ];
12 }
13 widgetOptionsArray.push( property + ': ' + propertyValue );
14 }
15 return widgetOptionsArray.join( ', ' );
16 };
17