removeAllOptions()
Popii / removeAllOptions
Function: removeAllOptions()
Section titled “Function: removeAllOptions()”removeAllOptions(
content,pluginName):string
Defined in: migrations.ts:109
Strips the entire options argument from a plugin call that no longer accepts one.
Turns pluginName({ ... }) into pluginName(), regardless of how many lines the
options object spans.
Parameters
Section titled “Parameters”content
Section titled “content”string
pluginName
Section titled “pluginName”string
Returns
Section titled “Returns”string
Example
Section titled “Example”// Strips all options from rssPlugin({ feeds: [...] })removeAllOptions(content, "rssPlugin")