Created
September 25, 2014 07:18
-
-
Save abdollahpour/6d53261754d738ecc172 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/sapuga/1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var data = { | |
'padded-left': ' left', | |
'padded-righ': 'right '}; | |
for(var d in data) data[d] = $.trim(data[d]); | |
console.log(data); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var data = { | |
'padded-left': ' left', | |
'padded-righ': 'right '}; | |
for(var d in data) data[d] = $.trim(data[d]); | |
console.log(data);</script></body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = { | |
'padded-left': ' left', | |
'padded-righ': 'right '}; | |
for(var d in data) data[d] = $.trim(data[d]); | |
console.log(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment