Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/domain/objectBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ const ERROR_REGEX_CONSTANT = (value) =>
const ERROR_REPLACER_FUNCTION = (value) =>
`something wrong with replacer function ${value}`;


// TODO to make this method working better [improvement]
Comment on lines +20 to +21

Check failure

Code scanning / ESLint

Delete `⏎`

Delete `⏎`
// 1. to handle a case when literal is false, it's very scary
// 2. we really need to be able to handle a situation when replacer isn't defined before (by different reasons)
// 3. does this function works fine with `components`

Check failure

Code scanning / ESLint

Delete `·`

Delete `·`
// 4. when something wrong - i want to have a better output about params that we passed

function objectBuilder(constant, replacer, literal = false) {
// TODO add typeof for checking replacer as a function
// console.log( typeof element.replacer === 'undefined' );
Expand Down