function debounce( f, delay = 50 ) {
let t, r, c = false;
const rescollect = ( ...b ) => { r = f.call( ...b ) }
return function( ...a ) {
if( !c ) rescollect( this, ...a ), c = true;
clearTimeout( t );
t = setTimeout( rescollect, delay, this, ...a );
return r;
}
}
const denamedperson = ( ( { name, ...rest } ) => ( { ...rest } ) ) ( preson );
removePost.bind( 'DEBUG', bike.index )
_removePost( index ) {
console.log( 'непосредственно splice', this, index )
this._state.bikesData.splice(index, 1)
this._checkSub(this._state);
},
let removePost = ( index ) => {
console.log( 'какая-то прослойка', this, index );
props.dispatch( removeAction( index ) );
}