File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ export function* list(config: Properties): Generator<KeyValuePair> {
84
84
/**
85
85
* Finds a value for the given key.
86
86
*
87
+ * Note that this method has O(n) complexity. If you want to read the file
88
+ * effectively, use `toObject` or `toMap` functions.
89
+ *
87
90
* @param config Java properties set.
88
91
* @param key Key name.
89
92
* @return Found value, or undefined. Value is properly unescaped.
@@ -170,6 +173,12 @@ export const set = (
170
173
export const remove = ( config : Properties , key : string ) : void =>
171
174
set ( config , key , undefined )
172
175
176
+ /**
177
+ * Find value indices.
178
+ *
179
+ * @param lines Lines array.
180
+ * @param key Key to be found.
181
+ */
173
182
const findValue = (
174
183
lines : string [ ] ,
175
184
key : string
You can’t perform that action at this time.
0 commit comments