Last active
November 28, 2015 16:10
-
-
Save kyokutyo/5b6a91bdd87fb7c2e6e2 to your computer and use it in GitHub Desktop.
オブジェクトから Gmail クエリ文字列を生成する関数
This file contains 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 genQuery = function (condition) { | |
var arr = []; | |
Object.keys(condition).forEach(function (key) { | |
arr.push(key + ':' + condition[key]); | |
}); | |
return arr.join(' AND '); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment