Skip to content

Commit

Permalink
remove deprecated get function signature (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sodiray committed Dec 11, 2022
1 parent 0a6216e commit c09baef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 54 deletions.
7 changes: 0 additions & 7 deletions cdn/radash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,13 +644,6 @@ const omit = (obj, keys) => {
);
};
const get = (value, funcOrPath, defaultValue = null) => {
if (isFunction(funcOrPath)) {
try {
return funcOrPath(value) ?? defaultValue;
} catch {
return defaultValue;
}
}
const segments = funcOrPath.split(/[\.\[\]]/g);
let current = value;
for (const key of segments) {
Expand Down
7 changes: 0 additions & 7 deletions cdn/radash.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,13 +647,6 @@ var radash = (function (exports) {
);
};
const get = (value, funcOrPath, defaultValue = null) => {
if (isFunction(funcOrPath)) {
try {
return funcOrPath(value) ?? defaultValue;
} catch {
return defaultValue;
}
}
const segments = funcOrPath.split(/[\.\[\]]/g);
let current = value;
for (const key of segments) {
Expand Down
Loading

0 comments on commit c09baef

Please sign in to comment.