Skip to content

Commit

Permalink
viết mã nguồn lấy dữ liệu từ url để tiến hành lọc
Browse files Browse the repository at this point in the history
  • Loading branch information
17020932 committed Apr 8, 2019
1 parent 23617c5 commit 3bc490d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web-bán-hàng/helper/params.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let getParams = (params, property, defaultValue) => {
if(params.hasOwnProperty(property) && params[property] !== undefined) {
return params[property];
}
return defaultValue;
}

module.exports = {
getParams
}

0 comments on commit 3bc490d

Please sign in to comment.