Skip to main content
Module

x/ddc_vim/deps.ts>fn.string

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.string
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { string } = fn;

Return {expr} converted to a String. If {expr} is a Number, Float, String, Blob or a composition of them, then the result can be parsed back with |eval()|. {expr} type result ~ String 'string' (single quotes are doubled) Number 123 Float 123.123456 or 1.123456e8 Funcref function('name') Blob 0z00112233.44556677.8899 List [item, item] Dictionary {key: value, key: value} When a |List| or |Dictionary| has a recursive reference it is replaced by "[...]" or "{...}". Using eval() on the result will then fail. Can also be used as a |method|: mylist->string() Also see |strtrans()|.

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>