How to make applyFilters function return false via functions.php

JS hooks don’t do server-side calls to retrieve PHP declared hooks.

wp.hooks.addFilter( 'hookName', 'namespace', () => { return false; }, 10 )

tech