Skip to content

Commit

Permalink
Add getDefault for webpack4 import
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Apr 6, 2018
1 parent c2e890b commit 33ca78a
Show file tree
Hide file tree
Showing 6 changed files with 429 additions and 404 deletions.
2 changes: 1 addition & 1 deletion packages/lib/get-object-value/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-object-value",
"version": "0.0.9",
"version": "0.0.10",
"description": "Get Object Value",
"repository": "react-atomic/react-atomic-organism",
"main": "./build/src/index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/lib/get-object-value/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ const getObjectValue = (o, path, defaultValue) => {
return current;
};

const getDefault = o => getObjectValue(o, ['default'], o);

export default getObjectValue;

export {getDefault};
Loading

0 comments on commit 33ca78a

Please sign in to comment.