Skip to content

Commit

Permalink
feat(parser): create parser that returns null for invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Nov 17, 2017
1 parent aba0b90 commit 24f4f02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Parses inline style to object.
*
* @param {String} style
* @return {Object|null}
*/
module.exports = function parseInlineStyle(style) {
if (!style || typeof style !== 'string') return null;
}

0 comments on commit 24f4f02

Please sign in to comment.