Skip to content

Commit

Permalink
refactor: change internals to pathParts function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hamilton committed Dec 3, 2018
1 parent 25b6729 commit 47e6018
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/del.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import is from './is';
import empty from './empty';
import clone from './clone';
import { getPathParts } from './internals';
import getPathParts from './pathParts';

/**
* Delete the specified path from the object
Expand Down
2 changes: 1 addition & 1 deletion src/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import is from './is';
import empty from './empty';
import has from './has';
import { getPathParts } from './internals';
import getPathParts from './pathParts';

/**
* Get the value from the specified path
Expand Down
2 changes: 1 addition & 1 deletion src/has.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// o
import is from './is';
import empty from './empty';
import { getPathParts } from './internals';
import getPathParts from './pathParts';

/**
* Check if an object has the specified paths
Expand Down
4 changes: 1 addition & 3 deletions src/internals.js → src/pathParts.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,4 @@ function getPathParts(path) {
return parts;
}

export {
getPathParts,
};
export default getPathParts;
2 changes: 1 addition & 1 deletion src/set.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// o
import is from './is';
import clone from './clone';
import { getPathParts } from './internals';
import getPathParts from './pathParts';

/**
* Set the specified path with the specified value
Expand Down

0 comments on commit 47e6018

Please # to comment.