Skip to main content
Module

x/denops_std/helper/mod.ts>exprQuote

📚 Standard module for denops.vim
Go to Latest
function exprQuote
import { exprQuote } from "https://deno.land/x/denops_std@v6.2.0/helper/mod.ts";

Tagged template function that marks a string as Vim's string constant format. Returns a String wrapper object instead of a primitive string.

import { exprQuote } from "https://deno.land/x/denops_std@v6.2.0/helper/expr_string.ts";

console.log(exprQuote`foo` == "foo"); // outputs: true
console.log(exprQuote`foo` === "foo"); // outputs: false
console.log(exprQuote`foo,${40 + 2}` == "foo,42"); // outputs: true

Parameters

template: TemplateStringsArray
...substitutions: TemplateSubstitutions