resources/js/components/Vuex/Modules/products.js
/**
     *
     * @param state
     * @param products array of objects
     */
@param state
@param products array of objects
@param state @param products array of objects
storeLowPrice(state, products) {
        products.forEach((product) => {
            if (product.modifications.length > 0) {
                product.low_price = Math.min.apply(null, product.modifications.map(function (item) {
                    return item.price
                }));
            }
        });
    }
storeLowPrice ( state , products ) { products . forEach ( ( product ) => { if ( product . modifications . length > 0 ) { product . low_price = Math . min . apply ( null , product . modifications . map ( function ( item ) { return item . price } ) ) ; } } ) ; }
@param state
 @param products array of objects
@param state @param products array of objects