1"use strict";(self.webpackChunkottoman_documentation=self.webpackChunkottoman_documentation||[]).push([[7539],{4224:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"api/functions/set","title":"Function: set()","description":"set(key, value): void","source":"@site/docs/api/functions/set.md","sourceDirName":"api/functions","slug":"/api/functions/set","permalink":"/docs/api/functions/set","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"selectBuilder","permalink":"/docs/api/functions/selectBuilder"},"next":{"title":"setValueByPath","permalink":"/docs/api/functions/setValueByPath"}}');var o=t(4848),i=t(8453);const r={},c="Function: set()",d={},l=[{value:"Parameters",id:"parameters",level:2},{value:"key",id:"key",level:3},{value:"value",id:"value",level:3},{value:"Returns",id:"returns",level:2}];function a(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"function-set",children:"Function: set()"})}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"set"}),"(",(0,o.jsx)(n.code,{children:"key"}),", ",(0,o.jsx)(n.code,{children:"value"}),"): ",(0,o.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:["Defined in: ",(0,o.jsx)(n.a,{href:"https://github.com/couchbaselabs/node-ottoman/blob/1d27269e06fbcd854d0a0ee2417c83714e023318/src/utils/environment-set.ts#L3",children:"utils/environment-set.ts:3"})]}),"\n",(0,o.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,o.jsx)(n.h3,{id:"key",children:"key"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.code,{children:"string"})}),"\n",(0,o.jsx)(n.h3,{id:"value",children:"value"}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"string"})," | ",(0,o.jsx)(n.code,{children:"number"})," | ",(0,o.jsx)(n.code,{children:"boolean"})]}),"\n",(0,o.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.code,{children:"void"})})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>r,x:()=>c});var s=t(6540);const o={},i=s.createContext(o);function r(e){const n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.